getTeam

A MoogDb v2 method that returns a team's details by team ID or team name.

Back to MoogDb V2 API Method Reference.

Request arguments

Method getTeam takes the following request arguments:

Name

Type

Required

Description

team_id

Integer

No, if you specify name.

ID of the team to return information about.

name

String

No, if you specify team_id.

Name of the team to return information about.

Response

Method getTeam returns the following response:

Type

Description

JSON Object

A JSON object containing information about the team.

Examples

The following examples demonstrate typical use of method getTeams:

Request example

Example request to return the details of team ID 1:

var teamData = moogdb.getTeam(1);

Response example

Example response returning information on team ID 1:

{
    "room_id": 1,
    "alert_filter": "(severity = 0) AND (severity = 1)",
    "user_ids": [3],
    "sig_filter": "((internal_priority = 0) AND (description = \"Test\")) AND (last_state_change = 1574121600)",
    "landing_page": "",
    "description": "",
    "active": true,
    "team_id": 1,
    "services": [],
    "users": ["admin"],
    "deleted": false,
    "name": "Cloud DevOps",
    "service_ids": []
}