assignSituation

A Graze API POST request that assigns the moderator to the Situation for a specified Situation ID and user ID.

Back to Graze API EndPoint Reference.

Request arguments

Endpoint assignSituation takes the following request arguments:

Name

Type

Required

Description

auth_token

String

Yes

A valid auth_token returned from the authenticate request. See the authenticate endpoint for more information.

sitn_id

Number

Yes

Situation ID.

user_id

Number

Yes

User ID.

username

String

No

A valid username.

Response

Endpoint assignSituation 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 assignSituation:

Request example

Example cURL request:

curl -X POST -u graze:graze -k -v "https://localhost/graze/v1/assignSituation" -H "Content-Type: application/json; charset=UTF-8" -d '{"sitn_id" : 7, "user_id" : 3 }'

Response example