Add or remove devices to/from a device group.
Arguments | Type | Description |
---|---|---|
add_devices | String | Required. An array of device IDs of enrolled devices |
remove_devices | Integer array | Required. An array of device IDs of enrolled devices |
NOTE: If add_devices and remove_devices contain same ID’s, then those ID’s will be added to the group.
1 |
POST https://<portal>.hexnodemdm.com/api/v1/devicegroups/{DEVICEGROUP_ID}/ |
1 |
curl -H "Authorization:<your API key>" -H "Content-Type: application/json" -d '{ "add_devices":[1,2,3],"remove_devices":[4]}' https://<portal>.hexnodemdm.com/api/v1/devicegroups/{DEVICEGROUP_ID}/ |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
{ "id": 4, "groupname":"ios device group", "description": "", "devices":[ { "id": 1, "name": "neils ipad", "model_name": "iPad (3rd Gen)", "platform": "ios" }, ], } |