Category Filter
Update Device Group
Update a device group.
Arguments | Type | Description |
---|---|---|
groupname | String | Required. Name of the device group |
description | String | Required. Description for the group |
devices | Integer array | Optional. IDs of the devices |
curl
HTTP Request:
Shell Command:
1 2 3 4 5 6 7 8 9 10 |
PUT https://<portal>.hexnodemdm.com/api/v1/devicegroups/{DEVICEGROUP_ID}/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "groupname": "iOS devices", "description":"Group of iOS devices", "devices":[2,3,4], }] |
Shell Command:
1 |
curl -H "Authorization:<your API key>" -H "Content-Type: application/json" -d '{ "groupname": "Neil","description":"description","devices":[1,2,3]}' https://<portal>.hexnodemdm.com/api/v1/devicegroups/{DEVICEGROUP_ID}/ -X PUT |
HTTP Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
{ "id":1, "groupname": "ios device group", "description":" "ios devices group for apps", "devices":[ { "id": 1, "name": "neil's ipad', "user_id": 2, "user_name": "neil", "model_name": "iPhone 4S", "platform": "ios" }, ] } |