Modify Sysapproal_approver record using API

Donald Small1
Tera Expert

I am trying to do a simple API call to update an approval record on the sysapproval_approver table.  Using API Explorer, I have 

PUT https://*******.service-now.com/api/now/table/sysapproval_approver/8f0cc504873ecd109d87ba6f8bbb3575?sysparm_fields=state&sysparm_input_display_value=approved

It is returning a 200 OK Status, but the response is:

{
  "result": {
    "state": "requested"
  }
}

What am I missing?  Why can I not update the state via API?

 

1 ACCEPTED SOLUTION

If it's field level WRITE ACL, you can use debug security rules to find out why this ACL is not allowing REST API updates.

You can give required roles.

Also, check if state column is not read only at dictionary level. You won't be to update field which is read only at dictionary level.

 

 

Regards,

Sachin

View solution in original post

5 REPLIES 5

Reginald U_
Tera Contributor

Not sure if it will help anyone but, even in my PDI, I could not get the state field to update via API until the API user had the approval_admin role. Once I did that it updated the state field just fine.

I believe this is governed by the ACL named sysapproval_approver.state.