Moogsoft Docs

getTeamSituationIds

Request that returns the total number of Situations that are assigned to a team, and a list of their Situation IDs.

Back to Graze API EndPoint Reference.

Request arguments

Endpoint getTeamSituationIds 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.

team_name

String

Yes

Name of an existing team.

Response

Endpoint getTeamSituationIds returns the following response:

Successful requests return a JSON object containing the following:

Name

Type

Description

total_situation

Number

The total number of Situations assigned to a team.

sitn_ids

Number list

A list of Situation IDs of the Situations assigned to a team.

Examples

The following examples demonstrate typical use of endpoint getTeamSituationIds:

Request example

Example cURL request to return the Situations assigned to team "Cloud Devops":

curl -G -u graze:graze -k -v "https://localhost/graze/v1/getTeamSituationIds" --data-urlencode "team_name=Cloud Devops"

Response example

Example response returning the total number of Situations followed by the ID of each situation.

{"total_situations":35,"sitn_ids":[20,21,39,55,85,119,145,180,208,233,244,275,305,358,460,461,485,518,574,575,592,616,666,695,696,740,800,892,919,960,992,993,1027,1047,1092]}