Define the path to the JSON file, which lists the devices that this operation is applied on, as the <JSON_PAYLOAD> value.
By default, <EMM_HOST> is localhost. However, if you are using a public IP, the respective IP address or domain needs to be specified.
By default, <EMM_HTTPS_PORT> has been set to 9443. However, if the port offset has been incremented by n, the default port value needs to be incremented by n.
{
"operation": {
"message": "This is a test message",
"isHardLockEnabled": true
},
"deviceIDs": [ "d8:50:e6:2f:6a:8b","a5:60:e6:2g:6a:5b"
]
}
Property Value
Description
Data Type
operation
Lists out the features of the device lock operation.
-
message
Provide the message that needs to be sent otu when locking the device.
String
isHardLockEnableddevice
idDefine true as the value if you need to hard device lock or define false as the value to only screen lock the device.
Info
Using hard lock, the admin is able to lock the device permanently. If the device is locked permanently, the admin can unlock the device via the device unlock REST API.
Boolean
deviceIDs
ID of the Android device. Multiple device IDs can be added by using comma separated values. For more information on retrieving the device ID, see Retrieving the ID of an Android device.