Category Filter
Set Friendly Name
Rename or set a friendly name for the device from the MDM console.
Argument | Type | Description |
---|---|---|
set_collective_name | Boolean type | Not mandatory.
If it is true, we use a single name and add a suffix. |
device_id_list | Array | Mandatory.
It provides the list of device IDs. |
collective_name | Character field | Mandatory when set_collective_name = true.
The same name is given for all the selected devices. |
friendly_name_list | Array | Mandatory when set_collective_name = not true.
This is used to send the new friendly names. |
use_suffix | Boolean type | Not mandatory
set_collective_name = true. Check whether suffix is needed. |
suffix | Integer | Mandatory when use_suffix=true.
Starting number of the suffix. |
curl
HTTP Request:
1 2 3 4 5 6 7 8 9 10 11 12 |
POST https://<portal>.hexnodemdm.com/api/v1/actions/save_friendly_name/ headers:- Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "set_collective_name" : false, "friendly_name_list": [11,22], "device_id_list" : [1,2], "use_suffix" : true, "suffix":123 }] |
Shell Command:
1 2 |
curl -H "Authorization: <your API key>" -H "Content-Type: application/json" -d '{"set_collective_name" : false, "friendly_name_list":[11,22],"device_id_list":[1,2],"use_suffix":true,"suffix":123 }' https://<portal>.hexnodemdm.com/api/v1/actions/save_friendly_name/ |
HTTP Response:
1 2 3 |
[ "Friendly name of 2 device(s) modified!" ] |