updateTeam
A Graze API POST request that updates an existing team.
Back to Graze API EndPoint Reference.
Request arguments
Endpoint updateTeam
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| String | Yes | A valid |
| Number | Yes | Team ID. |
| String | No | Team name. Exclude this attribute to leave Moogsoft Enterprise as it is. |
| String | No | An SQL-like filter that alerts must match to be assigned to the team. Exclude this attribute to leave Moogsoft Enterprise as it is. See Filter Search Data for more information on creating SQL-like filters. |
| Array of Strings or Numbers | No | List of the team service names or IDs. Exclude this attribute to leave Moogsoft Enterprise as it is. |
| String | No | An SQL-like filter that Situations must match to be assigned to the team. Exclude this attribute to leave Moogsoft Enterprise as it is. See Filter Search Data for more information on creating SQL-like filters. |
| String | No | Default landing page for the team. Exclude this attribute to leave Moogsoft Enterprise as it is. |
| Boolean | No | Set to |
| String | No | Team description. Exclude this attribute to leave Moogsoft Enterprise as it is. |
| Array of Strings or Numbers | No | List of users in the team, either IDs or usernames. Exclude this attribute to leave Moogsoft Enterprise as it is. |
Response
Endpoint updateTeam
returns the following response:
Examples
The following examples demonstrate typical use of endpoint updateTeam
:
Request example
Example cURL request to update the information for team ID 16:
curl -X POST -u graze:graze -k -v "https://localhost/graze/v1/updateTeam" \ -H "Content-Type: application/json; charset=UTF-8" \ -d '{"team_id" : 16, "name" : "my team name RENAMED", "active" : true, "description" : "The team description", "users" : []}'