Moogsoft Docs

updateTeam

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

auth_token

String

Yes

A valid auth_token returned from the authenticate request. See the authenticate endpoint for more information.

team_id

Number

Yes

Team ID.

name

String

No

Team name. Exclude this attribute to leave Moogsoft AIOps as it is.

alert_filter

String

No

Team alerts filter. Either a SQL like filter or an JSON representation of the filter. Exclude this attribute to leave Moogsoft AIOps as it is.

services

JSON List

No

List of the team service names or IDs. Exclude this attribute to leave Moogsoft AIOps as it is.

sig_filter

String

No

Situation filters. Either a SQL like filter or an JSON representation of the filter. Exclude this attribute to leave Moogsoft AIOps as it is.

landing_page

String

No

Team default landing page. Exclude this attribute to leave Moogsoft AIOps as it is.

active

Boolean

No

true if the team is active, false if the team is inactive. Default is true. Exclude this attribute to leave Moogsoft AIOps as is.

description

String

No

Team description. Exclude this attribute to leave Moogsoft AIOps as it is.

users

List of numbers or strings

No

List of users in the team users, either IDs or usernames. Exclude this attribute to leave Moogsoft AIOps 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" : []}'

Response example