The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Mark incident as resolved with Rest API

knowram
Kilo Explorer

I am trying to mark an incident as resolved via the REST AIP I have tried using the REST API explorer to send a post with the following body   {"state":"6"} which didn't seem to have any impact on the incident.

11 REPLIES 11

vab_13
ServiceNow Employee
ServiceNow Employee

nw.


Jamie Imms
Kilo Expert

Hi Jacob,



Have you made any changes to the State field?



You can find which value you should be changing it to by going into an Incident, right clicking on the State label, and going to Configure Dictionary.


Click the Choices related list, (make sure you can see the Table column. If you can't, click the cog in the top left and add it to the list), find where Table = incident, right click on incident and click Show Matching.



This will show you all the possible States and their value that you should be setting to.




If it is still not working, perhaps you have a BR interfering.



Try doing another POST, except with the following body:



{


  "incident_state": "6"


}