Command APIs
Send command to multiple devices
Send a command with provided data to multiple devices. Command could be any supported command such as send message command, install package command, OTA and more. Returns metadata about the sent command.
post/rest/command/send/sendcommanddatatomany
Request
- Base URLhttps://masonconsole.com
- AuthHTTP bearer
Request body
Example request
{
"commandData": {
"intentAction": "com.example.MY_ACTION",
"packageName": "com.receiverapp.package",
"componentName": "com.receiverapp.package.YourReceiver",
"declaredPermission": "com.yourapp.CUSTOM_BROADCAST_PERMISSION",
"intentExtras": {
"key1": "value1",
"key2": "value2"
},
"waitForResponse": true
},
"deviceIds": [
"device_id_1",
"device_id_2"
]
}Response
Successful response
Example response
{
"data": {
"commandId": "command123"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.