A MoogDb v2 method that returns a team's details by team ID or team name.
Back to MoogDb V2 API Method Reference.
Method getTeam
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| Integer | No, if you specify | ID of the team to return information about. |
| String | No, if you specify | Name of the team to return information about. |
Method getTeam
returns the following response:
Type | Description |
---|---|
JSON Object | A JSON object containing information about the team. |
The following examples demonstrate typical use of method getTeams
:
Example request to return the details of team ID 1:
var teamData = moogdb.getTeam(1);
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": []
}