Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

A little I see that you are doing a PATCH instead of a PUT however I don't get "state" as an option in my builder dropdown.


Screen Shot 2017-09-05 at 8.57.45 PM.png


and when I just use raw to manually input it nothing I get a 200 ok but when I go back to look at the incident nothing has changed.


vab_13
ServiceNow Employee
ServiceNow Employee

that's strange.


Are you on a Dev instance? would you mind sharing the instance name? I can connect and have a quick look.


odds are it's a dev instance. gdtadvancedsolutionsdev.service-now.com


vab_13
ServiceNow Employee
ServiceNow Employee

It might be a Dev Instance, but not one from Developer.servicenow.com


That means you should be able to log a Hi ticket for it.



I can't connect to it unless I have got a Hi Ticket for it, unfortunately.


It seems the account I have doesn't have access to HI. I will have to figure that out tomorrow.