Moogsoft Docs

updateTeam

A MoogDb v2 method that updates an existing team, by passing an object containing team information.

Back to MoogDb V2 API Method Reference.

Request arguments

Method updateTeam takes the following request arguments:

Name

Type

Required

Description

teamObj

Object

Yes

Object containing the team information.

The team object teamObj contains the following information:

Name

Type

Required

Description

team_id

Number

Yes

Team ID.

name

String

No

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

alert_filter

JSON Object

No

An SQL-like or JSON filter that alerts must match to be assigned to the team. Exclude this attribute to leave Moogsoft AIOps as it is.

See Filter Search Data for more information on creating SQL-like filters.

services

Array of Numbers or Strings

No

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

sig_filter

JSON Object

No

An SQL-like or JSON filter that Situations must match to be assigned to the team. Exclude this attribute to leave Moogsoft AIOps as it is.

See Filter Search Data for more information on creating SQL-like filters.

landing_page

String

No

Default landing page for the team. Exclude this attribute to leave Moogsoft AIOps as it is.

active

Boolean

No

Set to true if the team is active; set to 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

Array of Numbers or Strings

No

List of users in the team, either IDs or usernames. Exclude this attribute to leave Moogsoft AIOps as it is.

Response

Method updateTeam returns the following response:

Examples

The following examples demonstrate typical use of method updateTeam:

Request example

Example request to update a number of fields in Team ID 3:

{
    "team_id" : 3,
        "name": "myTeam",
        "alert_filter": "{ \"column\": \"count\", \"op\": 1, \"value\": 1, \"type\": \"LEAF\" }",
        "sig_filter": "{ \"column\": \"severity\", \"op\": 1, \"value\": 5, \"type\": \"LEAF\" }",
        "active": true,
        "services": [1, 2, 4],
        "users": ["user1", "user4"],
        "description": "myDescription",
        "landing_page": ""
}

Response example