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

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 Array

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

Array 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

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