Skip to main content

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. Alternatively, basic authenticate headers can be used in place of this parameter. See the authenticate endpoint for more information and usage examples.

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": 7,"sitn_ids": [20,21,39,55,85,119,145]
}