Category Filter
Add/Remove Devices
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 the same IDs, then those IDs will be added to the group.
curl
HTTP Request:
Shell Command:
1 2 3 4 5 6 7 8 9 |
POST https://<portal>.hexnodemdm.com/api/v1/devicegroups/{DEVICEGROUP_ID}/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "add_devices":[1,2,3], "remove_devices":[4], }] |
Shell Command:
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}/ |
HTTP Response:
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" }, ], } |