Rest API Integration endpoint is working in postman not in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2020 02:13 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2020 02:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2020 02:57 AM
Gokul,
Maybe you could provide screenshots of your configuration, Reference API, HTTP Query parameters / Headers if needed, etc.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2020 04:03 AM
i provide all details in above conversation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2020 05:15 AM
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,