A Graze API POST request that removes the primary team from a Situation. The team remains assigned to the Situation.
Back to Graze API EndPoint Reference.
Endpoint removeSituationPrimaryTeam
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| String | Yes | A valid |
| Number | Yes | ID of the Situation that you want to remove the primary team from. |
Endpoint removeSituationPrimaryTeam
returns the following response:
Successful requests return a JSON object containing the following:
Name | Type | Description |
---|---|---|
| Number | ID of the Situation that the primary team has been removed from. |
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.
The following examples demonstrate typical use of endpoint removeSituationPrimaryTeam
:
Example cURL request to remove the primary team from Situation 1906:
curl -G -u graze:graze -k "https://localhost/graze/v1/removeSituationPrimaryTeam" --data-urlencode 'sitn_id=1906'
Example response returning the Situation ID that the primary team has been removed from:
{
"sitn_id": 1906
}