Category Filter
Change Device Ownership
Change ownership of your device from the MDM console.
Argument | Type | Description |
---|---|---|
devices
|
Array | Required. IDs of the devices |
devicegroups | Array | Required. IDs of the devicegroups |
ownership | Integer |
Required.
Specify the ownership of the devices. Choose 1 for Personal and 2 for Corporate.
|
curl
HTTP Request:
1 2 3 4 5 6 7 8 9 |
POST https://<portal>.hexnodemdm.com/api/v1/actions/change_ownership/ Authorization: <api key> Content-Type: application/json Sample Post Data:- [{ "ownership":1, "devices":[5,6], "devicegroups":[12], }] |
Shell Command:
1 2 3 4 5 |
curl -H "Authorization: <your API key> " -H "Content-Type: application/json" -d ' {"ownership" : 1 , "device" : [1,2],"devicegroups:[1]" } ' https://<portal>.hexnodemdm.com/api/v1/actions/change_ownership/ |
HTTP Response:
1 2 3 |
[ "Device ownership changed successfully!" ] |