Skip to main content

getSituationPrimaryTeam

A Graze API GET request that returns the primary team on the specified Situation.

Back to Graze API EndPoint Reference.

Request arguments

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

sitn_id

Number

Yes

ID of the Situation you want to retrieve the primary team for.

Response

Endpoint getSituationPrimaryTeam returns the following response:

Successful requests return a JSON object containing the following:

Name

Type

Description

sitn_id

Number

ID of the Situation you wanted to retrieve the primary team for.

primary_team_id

Number

ID of the primary team for the Situation.

Examples

The following examples demonstrate typical use of endpoint getSituationPrimaryTeam:

Request example

Example cURL request to return the primary team for Situation 1906:

curl -G -u graze:graze -k "https://localhost/graze/v1/getSituationPrimaryTeam" \
--data-urlencode 'sitn_id=1906'

Response examples

Example response returning that team 36 is the primary team for Situation 1906:

{
    "primary_team_name": "Cloud DevOps",
    "sitn_id": 1906,
    "primary_team_id": 1
}

Example response returning that Situation 1906 does not have a primary team assigned to it:

{
    "sitn_id":1906,
}