How to update / approve a change request using scripted rest API

Anshuman7
Tera Contributor

Hi I want to approve / reject a change request using scripted rest API . Can anyone help me with this . 

2 REPLIES 2

Community Alums
Not applicable

Hi Anshuman,

You can use OOB Table API on Approval table for approving/rejecting the records.

And refer to this thread for the details on the usage of Scripted REST APIs for approvals:

https://community.servicenow.com/community?id=community_question&sys_id=cbbb8d1e1bbfb410ccc253da234b...

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

we are not using a normal user auth instead we are using a Integration user auth.  Also we need a scripted API or similar mechanism so that we can impersonate the user to approve / reject the change request using Integration user auth.