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 |
---|---|---|---|
| Object | Yes | Object containing the team information. |
The team object teamObj
contains the following information:
Name | Type | Required | Description |
---|---|---|---|
| Number | Yes | Team ID. |
| String | No | Team name. Exclude this attribute to leave Moogsoft Onprem as it is. |
| 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 Onprem as it is. See Filter Search Data for more information on creating SQL-like filters. |
| Array of Numbers or Strings | No | List of the team service names or IDs. Exclude this attribute to leave Moogsoft Onprem as it is. |
| 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 Onprem as it is. See Filter Search Data for more information on creating SQL-like filters. |
| String | No | Default landing page for the team. Exclude this attribute to leave Moogsoft Onprem as it is. |
| Boolean | No | Set to |
| String | No | Team description. Exclude this attribute to leave Moogsoft Onprem as it is. |
| Array of Numbers or Strings | No | List of users in the team, either IDs or usernames. Exclude this attribute to leave Moogsoft Onprem 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": "manager = \"my_manager\" and (class = \"my_class_12345\" or external_id = \"my_ext_12345\")", "sig_filter": "description = \"my_description_12345\" or queue = 50", "active": true, "services": [1, 2, 4], "users": ["user1", "user4"], "description": "myDescription", "landing_page": "" }