Standard Change Risk Assessment via REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2019 09:47 AM
I'm trying to complete the risk assessment bit for a standard change via the REST API. Creating the change is no problem, and I can GET the change. But when I do a PATCH /sn_chg_rest/change/standard/{sys_id}/risk as described at https://developer.servicenow.com/app.do#!/rest_api_doc?v=madrid&id=changemgmt-PATCH-std-chng-risk, I get "Requested URI does not represent any resource: /sn_chg_rest/change/standard/32061b0cdb86ff00bb0cd12c5e9619e3/risk". Why does the documentation say that I can PATCH to that URI if the resource doesn't actually exist? Is there some other way to complete the risk assessment so I can move this change along in the workflow? What am I missing?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2019 10:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2019 10:52 AM
So is it an error that the documentation suggests a route exists for this, beyond just the table route?
How do I know the sys_id of the risk assessment for a change? I thought it might just be the sys_id of the change itself, but that failed - "Requested URI does not represent any resource: /sn_chg_rest/now/table/change_risk_asmt/32061b0cdb86ff00bb0cd12c5e9619e3"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2019 11:11 AM
I am not sure about documentation.
But, you can get sys_id of change risk in change_risk_asmt table.
change_risk_asmt.LIST
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2019 11:49 AM
Nope, I tried to get a few entries on that table to see what they look like and that doesn't work either. "Requested URI does not represent any resource: /sn_chg_rest/now/table/change_risk_asmt/"