PATCH API TO UPADTE RITM

shabbir9
Tera Contributor

Hi

we need to share an ServiceNow API to the customer where they can update the requested item state to resolve i am using below API but  its not working can any one help me on this it is showing 200 ok in post man but in result I am getting state=1 which is open state sharing screen shots below 

PATCH API

https://dev127677.service-now.com/api/now/table/sc_req_item/aeed229047801200e0ef563dbb9a71c2?sysparm...

 

JSON 

{
    "state""6"
  }
 
shabbir9_0-1688553122310.png
 
6 REPLIES 6

yes Table is  sc_req_item

 

and state =6 for resolved 

 

i am able to update  state=3(pending) state=1(open) but state = 6 resolved is not working it is going in open state 

 

shabbir9_0-1688556499317.png

 

Perhaps consider verifying the presence of any Business Rule or UI policy that could be rendering the task of setting the state to "resolved" unachievable.