The CreatorCon Call for Content is officially open! Get started here.

Rest API Integration endpoint is working in postman not in servicenow

gokul arumugam
Kilo Contributor

Post operation endpoint is working in postman without mid server & authentication but not working in servicenow.

 

I am getting below error message: Method failed: (/fw/index.php) with code: 404

8 REPLIES 8

Post image:

find_real_file.png

Servicenow image:

find_real_file.png

test result:

lmseco
Mega Expert

Gokul,

Maybe you could provide screenshots of your configuration, Reference API, HTTP Query parameters / Headers if needed, etc.

Regards,

i provide all details in above conversation.

lmseco
Mega Expert

Gokul,

At...

https://kb.netreo.com/oc12/knowledge-base/strategic-group-api/

They provide a curl post example...

curl -X POST \
  'http://38.2.11.62/fw/index.php?r=restful/strategic-group/strategic-group-devices' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F strategic_group_id=10001

... have you tried to provide a content type header parameter?

    content-type: multipart/form-data

By the way, just in case, override the default "user-Agent" header provided by service now:

    User-Agent: ServiceNow

Another tip, maybe you should pass the next substring as an http parameter instead of being part of the endpoint...

    r=restful/strategic-group/strategic-group-devices

Regards,