setSituationAcknowledgeState
A Graze API POST request that acknowledges or unacknowledges the moderator who has been assigned to a Situation. The Situation must be assigned for this request to be successful.
Back to Graze API EndPoint Reference.
Request arguments
Endpoint setSituationAcknowledgeState
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| String | Yes | A valid |
| Number | Yes | Situation ID. |
| Number | Yes | The acknowledge state:
|
Response
Endpoint setSituationAcknowledgeState
returns the following response:
API update behavior
The behavior of this endpoint depends on whether the relevant alert or Situation is open, closed and still in the active database, or closed and archived to the historic database. This endpoint updates the alert or Situation as follows:
See API Update Behavior for more information on Situation statuses.
Examples
The following examples demonstrate typical use of endpoint setSituationAcknowledgeState
:
Request example
Example cURL request to set the moderator on Situation ID 64 as acknowledged:
curl -X POST -u graze:graze -k -v "https://localhost/graze/v1/setSituationAcknowledgeState" -H "Content-Type: application/json; charset=UTF-8" -d '{"sitn_id" : 64, "acknowledged" : 1 }'