Moogsoft Docs

assignAndAcknowledgeSituation

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

Back to Graze API EndPoint Reference.

Request arguments

Endpoint assignAndAcknowledgeSituation 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

ID of the user to be assigned as the owner of the Situation.

username

String

No

Username of the user to be assigned to the Situation.

There are no other arguments, as this endpoint returns data on all processes.

Response

Endpoint assignAndAcknowledgeSituation returns the following response:

API behavior in active and historic databases

The behavior of this endpoint depends on whether the relevant Situation is open, closed and still in the active database, or closed and archived to the historic database. This endpoint updates the Situation as follows:

See API Update Behavior for more information on Situation statuses.

Examples

The following examples demonstrate typical use of endpoint assignAndAcknowledgeSituation:

Request example

Example cURL request:

Response example