I am able to acknowledge alerts in SWIS, my question is are you able to unacknowledge? If so, I was assuming the process would be similar to the acknowledgment workflow.
Here is some sample code of what I'm sending:
var request = new JArray();
var ack = new JObject
{
{"DefinitionId", alert.DefID.ToString()},
{"ObjectType", "Interface"},
{"ObjectId", alert.AlertObjectID.ToString()}
};
request.Add(ack);
var body = new JArray { request };
var postAlert = _Post(body.ToString(Formatting.None), "Invoke/Orion.AlertActive/Unacknowledge");
Here is the format of the body sent to SWIS:
[
[
{
"DefinitionId": "f6126e8c-80c3-4d5c-ad02-b677285472d1",
"ObjectType": "Interface",
"ObjectId": "189"
}
]
]