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

Ankur Bawiskar
Tera Patron
Tera Patron

@shabbir9

are you sure on RITM table the state field has choice value as 6 for Resolved?

Is the state field on RITM having Resolved state itself or not?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

RITM is on open state 

state = 6 for resolved 

shabbir9_0-1688555897936.png

 

shabbir9_1-1688556083092.png

 

Are you sure that one of those choices is for the sc_req_item table?

SimonL898794821
Mega Sage

Checked my PDI, are you sure that there is a state "6"? I only have 1, 2, 3, 4, 5, 7.