Category Filter
Rename Device
Rename supervised iOS and Apple TV devices.
| Argument | Type | Description |
|---|---|---|
| users | Array | Optional. IDs of the users. |
| usergroups | Array | Optional. IDs of the user groups. |
| devices | Array | Optional. IDs of the devices. |
| devicegroups | Array | Optional. IDs of the device groups. |
| name | Char | Mandatory. The same name is given for all the selected devices. |
| use_suffix | Boolean type | Not mandatory. Check whether suffix is needed. |
| suffix | Integer | Mandatory when use_suffix=true. Starting number of the suffix. |
curl
HTTP Request:
Shell Command:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
POST https://<portal>.hexnodemdm.com/api/v1/actions/rename_device/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "users":[0], "usergroups":[4], "devices":[5,6], "devicegroups":[12], “name”: “Alex”, "use_suffix": true, "suffix": 123, }] |
Shell Command:
|
1 |
curl -H "Authorization: <your API key>" -H "Content-Type: application/json" -d '{"users":[0],"usergroups":[4],"devices":[5,6],"devicegroups":[12], “name”: “Test”, “use_suffix”: true, “suffix”: 123}' https://<portal>.hexnodemdm.com/api/v1/actions/rename_device/ |
HTTP Response:
|
1 |
HTTP/1.1 200 ok |