sn_chg_rest/change/standard/ API

Ankit Rastogi
Tera Contributor

Hi Team,

 

Can you please help me to get working curl for sn_chg_rest/change/standard/{standard_change_template_id} API?

I need to create standard change request by using Standart template through API

2 REPLIES 2

arielgritti
Mega Sage

Hi Ankit,

 

Steps to follow.

  1. Create a standard change template (obtain the sys_id)
  2. Call it using the Standard Change Template API
https://<instance_name>.service-now.com/api/sn_chg_rest/change/standard/<standard_change_template_sys_id>

 

In the request body add some fields you wants to populate on the STD change record.

{"description":"Created from API"}

 

Please mark helpful or correct if I helped you.
This action will help other members with similar issues to find a solution.
Thanks
Ariel

The "curl" script is similar:

curl "https://<instance_name>.service-now.com/api/sn_chg_rest/change/standard/<standard_change_template_sys_id" \
--request POST \
--header "Accept:application/json" \
--user 'xxx':'xxxx'

 

Please mark helpful or correct if I helped you.
This action will help other members with similar issues to find a solution.
Thanks
Ariel