We are trying to send an Acknowledge REST API call to our Orion server from another system, however we can't seem to figure out how to format the JSON properly. I have found many posts on Thwack with examples but they all seem to be for the old alerting schema and don't seem to apply to what we are seeing as the arguments for the Acknowledge verb in SWQL Studio.
tdanner shows in this post here to send it with 4 different arguments: DefinitionId, ObjectType, ObjectId, and Notes. However, if you expand the Acknowledge verb under the "AlertsActive" entity in SWQL Studio you will see that the only two arguments needed is the AlertObjectIDs (which is an array of one or more ID's you can send) and the Notes argument.
Here is what we are trying to send in the body now and it's not working:
POST PrimaryOrionServer:17778/.../Acknowledge
[{"alertObjectIds":[{"ids":146735}], "notes":"Incident undefined created on undefined by ServiceNow System. I like Batman. He is kewl."}]
We think the problem is how we are formatting the alertObjectIds since, even though we are only wanting to acknowledge one Alert at a time, the argument is an array and thus should be formatted as one, correct?