assignAndAcknowledgeAlert
A Graze API POST request that assigns and acknowledges the specified user as the owner of the specified alert ID.
Back to Graze API EndPoint Reference.
Request arguments
Endpoint assignAndAcknowledgeAlert
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| String | Yes | A valid |
| Number | Yes | Alert ID. |
| Number | No, if you specify | ID of the user to be assigned as the owner of the alert. You must provide the |
| String | No, if you specify | Username of the user to be assigned as the owner of the alert. You must provide the |
Response
Endpoint assignAndAcknowledgeAlert
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 assignAndAcknowledgeAlert
:
Request example
Example cURL request to assign user "Cloud DevOps 1" as the owner of alert 432:
curl -X POST -u graze:graze -k -v "https://localhost/graze/v1/assignAndAcknowledgeAlert" -H "Content-Type: application/json; charset=UTF-8" -d '{"alert_id" : 432, "username" : "Cloud DevOps 1" }'