Unable to use the API,how to access it. "https://instance.servicenow.com/api/sn_km_api/knowledge/articles"

Phanikanth
Kilo Contributor

Hi,

I'm not able to use the api  "https://instance.servicenow.com/api/sn_km_api/knowledge/articles",when I'm trying to access api through postman getting error like 

"requested URI does not represent any resource". Please  help to solve this.
I'm using api with my domain name
API:https://dev82597.service-now.com/api/sn_km_api/knowledge/articles

find_real_file.png

12 REPLIES 12

Hitoshi Ozawa
Giga Sage
Giga Sage

Is there a scripted REST API corresponding to this uri?

Go to "System Web Services" > "Scripted Web Services" > "Scripted REST APIs". Set filter on column "Base API path" to "/api/sn_km".

Hi,

I couldn't able to run the api.plz suggest exact steps to procedure further.

find_real_file.png

shloke04
Kilo Patron

Hi,

ServiceNow support can find the incoming IP address(es) of the Web Service call that is causing the error.  

It is likely that the HTTP response code will be an HTTP-400.

To resolve the issue either:

(1) Stop the Web Service calls from the incoming IP address(es).

(2) Define a scripted REST or scripted SOAP Web Service that will handle the incoming request based on the URI and Method being made by the call.  This is the documentation on Scripted REST and Scripted SOAP Web Services:

 

In Short have you defined this API in ServiceNow, if yes can you show me where have you defined this with a screenshot to assist you better.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0863480#:~:text=ServiceNow%20support%20can%20find%20the,incoming%20IP%20address(es).

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

I have not defined in servicenow.I have table called KB_Knowledge and after that I'm trying add this in my uri path "sn_km_api/knowledge/articles".I dont no how to define in servicenow.

I need to get articles from servicenow api,So I have made this uri from servicenow.

find_real_file.png