Category Filter
Add to device group
Add the device to a device group.
Argument | Type | Description |
---|---|---|
devices | Array | Required. IDs of the devices. |
devicegroups | Array | Required. IDs of the device groups. |
curl
HTTP Request:
Shell Command:
1 2 3 4 5 6 7 8 9 |
POST https://<portal>.hexnodemdm.com/api/v1/actions/add_to_device_group/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "devices":[5,6], "devicegroups":[12], }] |
Shell Command:
1 |
curl -H "Authorization: <your API key>" -H "Content-Type: application/json" -d '{"devices":[5,6],"devicegroups":[12]}' https://<portal>.hexnodemdm.com/api/v1/actions/add_to_device_group/ |
HTTP Response:
1 |
HTTP/1.1 200 ok |