- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 10:30 PM
curl "https://dev112780.service-now.com/api/now/table/change_request" \
--request POST \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{\"requested_by\":\"Abel Tuter (Architect)\",\"short_description\":\"testing via post API\"}" \
--user 'admin':'admin'
I tried this way it works.
response body will have the info.
The result:-
If its helpful,please mark answer as correct
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 10:38 PM
That works, many thanks. I can't mark it as correct yet until I have some idea why I cannot use the Change Management API (/sn_chg_rest/change).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 11:25 PM
Its working via this method also
curl "https://dev11880.service-now.com/api/sn_chg_rest/change/normal" \
--request POST \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{\"requested_by\":\"Abel Tuter (Architect)\",\"short_description\":\"testing via post API using change rest\"}" \
--user 'admin':'admin'
Result

You have to define type of change
check from servicenow rest api explorer

If its helpful,please mark answer as correct
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 11:06 PM
Thanks to anshu I am able to create a Change using the Table API, and I can modify and retrieve it using the Change Management API. I would be more comfortable if I could create with the Change Management API also. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 11:26 PM
Its working via this method also
curl "https://dev11880.service-now.com/api/sn_chg_rest/change/normal" \
--request POST \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{\"requested_by\":\"Abel Tuter (Architect)\",\"short_description\":\"testing via post API using change rest\"}" \
--user 'admin':'admin'
Result

You have to define type of change
check from servicenow rest api explorer

If its helpful,please mark answer as correct
Anshu