How does Scripted REST API PATCH Work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi,
Im currently implementing an integration between my instances but im currently lost in the scripted rest api within PUT and PATCH resource.
the error response always is this in PATCH
REST Msg Outbound - RESTMessageClient : Error executing REST request: Invalid uri 'https://dev204xxx.service-now.com/api/18xxx7x/ebonding_inbound_api/update_incident/{sys_id}': escaped absolute path not valid: Invalid uri 'https://dev204xxx.service-now.com/api/18xxx7x/ebonding_inbound_api/update_incident/{sys_id}': escaped absolute path not valid: no thrown error
but my POST resource it succeeded on my end without an error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
It's highly dependant on how you've configured the endpoint, for instance this is the endpoint for using PATCH with the table API. The error you have indicates the URL is definitely the issue, if you provided some screen captures of how it's configured or have a look at it in REST API Explorer you might see the correct format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
seems you are giving invalid endpoint with your PATCH method.
share your scripted REST API configuration screenshots
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
@Ankur Bawiskar @Corey19
so my PATCH endpoint i already tried this
and this
but both display 400
i also tried in in the rest api explorer it still 401
and here is my scripted resource
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
instead of sending query parameters, did you try sending the incident details using JSON request body?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader