URL
POST https://{api-url}/api/v2/tenants/{tenantId}/deviceGroups
Sample URLs
https://{api-url}/api/v2/tenants/client_10/deviceGroups
This endpoint updates the details of a device group performing one of these actions:
- Rename a device group
- Change the set of devices residing in a device group
- Change knowledge base articles assigned to a device group
- Add a device group as a child under an existing device group (the parent)
Parameters
Field | Data Type | Description |
---|---|---|
name | String | Unique name for the device group. The device group is identified with this name. |
entityType | String | (Optional) Type of resources in a group. Example: DEVICE_GROUP, SNS |
parent
| String | Add a device group as child under an existing device group (parent). This field is mandatory while adding a child device group to parent device group. |
filterCriteria | (Optional) Set of rules to filter resources. | |
matchType | String | (Optional) The type of match:
|
rules
| String | (Optional) Filter devices with specific attributes:
|
kbArticleIds | Integer | (Optional) Assign knowledge base articles to a device group. To fetch a knowledge base article ID:
|
Status code
200 OK
Rename device groups
Sample request
[{
"id": "DGP-a20e13ad-e98f-416e-a9dd-40158ffdb2af",
"name": "Network Device Groups",
"description": "Network Devices in SJ Office",
"entityType": "DEVICE_GROUP",
"kbArticlesIds": [10897]
}]
Sample response
[{
"id": "DGP-a20e13ad-e98f-416e-a9dd-40158ffdb2af",
"name": "Network Device Groups",
"description": "Network Device Groups in SJ Site",
"entityType": "DEVICE_GROUP",
"kbArticlesIds": [10897]
}]
Add a device group as a child in an existing device group
The existing device group becomes the parent of the child device group.
Sample request
[{
"name": "Communications Server",
"description": "Communications server in SJ",
"parent": {
"id": "DGP-a20e13ad-e98f-416e-a9dd-40158ffdb2af"
},
"entityType": "DEVICE_GROUP",
"kbArticlesIds": [20123]
},
{
"name": "Print Servers",
"description": "Print Servers in SJ",
"parent": {
"id": "DGP-a20e13ad-e98f-416e-a9dd-40158ffdb2af"
},
"entityType": "DEVICE_GROUP",
"filterCriteria": {
"matchType": "ALL",
"rules": [{
"key": "Name",
"operator": "Contains",
"value": "Luminax",
"resourceType": "DEVICE"
},
{
"key": "Region Name",
"operator": "Contains",
"value": "SJ",
"resourceType": "DEVICE"
}
]
},
"kbArticlesIds": [20122]
}
]
Sample response
[{
"id": "DGP-1d021aca-f360-4c14-967c-892296b7d4f5",
"name": "Commincations Server",
"description": "Communications Server in SJ",
"createdDate": "2017-08-10T07:40:55+0000",
"updatedDate": "2017-08-10T07:40:55+0000",
"entityType": "DEVICE_GROUP",
"kbArticlesIds": [20123]
},
{
"id": "DGP-c87c9dd5-b7fe-498d-a242-338683e745b4",
"name": "Print Servers",
"description": "Print Servers in SJ",
"createdDate": "2017-08-10T07:40:55+0000",
"updatedDate": "2017-08-10T07:40:55+0000",
"entityType": "DEVICE_GROUP",
"filterCriteria": {
"matchType": "ALL",
"rules": [{
"key": "Name",
"operator": "Contains",
"value": "Luminax",
"resourceType": "DEVICE"
},
{
"key": "Region Name",
"operator": "Contains",
"value": "SJ",
"resourceType": "DEVICE"
}
]
},
"kbArticlesIds": [20122]
}
]