Commands
Sending commands to devices and stored command management
Fetch a list of Saved Commands
Without params, it returns a list of Saved Commands the user has access to
Parameters
allbooleanqueryCan only be used by admins or managers to fetch all entities
userIdintegerqueryStandard users can use this only with their own userId
deviceIdintegerqueryStandard users can use this only with _deviceId_s, they have access to
groupIdintegerqueryStandard users can use this only with _groupId_s, they have access to
refreshbooleanquerylimitintegerqueryLimit the number of returned results
offsetintegerqueryOffset for pagination
keywordstringquerySearch keyword filter
Response
OK
Unauthorized
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Create a Saved Command
Body
idinteger<int64>Unique saved command identifier
deviceIdinteger<int64>Target device identifier when the command is bound to one device
descriptionstringUser friendly label displayed in the UI
typestringCommand type as defined by the device protocol
textChannelbooleanWhether to send the command using the SMS channel
attributesobjectAdditional parameters required by the command type
Response
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Fetch a Saved Command
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Update a Saved Command
Body
idinteger<int64>Unique saved command identifier
deviceIdinteger<int64>Target device identifier when the command is bound to one device
descriptionstringUser friendly label displayed in the UI
typestringCommand type as defined by the device protocol
textChannelbooleanWhether to send the command using the SMS channel
attributesobjectAdditional parameters required by the command type
Parameters
idintegerrequiredpathResponse
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Delete a Saved Command
Parameters
idintegerrequiredpathResponse
No Content
Unauthorized
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Fetch a list of Saved Commands supported by Device at the moment
Return a list of saved commands linked to Device and its groups, filtered by current Device protocol support
Parameters
deviceIdintegerrequiredqueryStandard users can use this only with _deviceId_s, they have access to
Response
OK
Could happen when the user doesn't have permission for the device
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Dispatch commands to device
Dispatch a new command or Saved Command if body.id set
Body
idinteger<int64>Unique saved command identifier
deviceIdinteger<int64>Target device identifier when the command is bound to one device
descriptionstringUser friendly label displayed in the UI
typestringCommand type as defined by the device protocol
textChannelbooleanWhether to send the command using the SMS channel
attributesobjectAdditional parameters required by the command type
Parameters
groupIdintegerquerySend the command to all devices in the group
Response
Command sent
Command queued
Could happen when the user doesn't have permission or an incorrect command type for the device
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)Fetch a list of available Commands for the Device or all possible Commands if Device ommited
Parameters
deviceIdintegerqueryInternal device identifier. Only works if device has already reported some locations
textChannelbooleanqueryWhen true return SMS commands. If not specified or false return data commands
Response
OK
Could happen when trying to fetch from a device the user does not have permission
Authorization
BasicAuthhttp (basic)ApiKeyhttp (bearer)