Creates a Gateway Command

Creates a Gateway Command and sends it to one or more devices.

Log in to see full request history
Body Params
string

The type of command.

object

The payload that is sent to the device. Not all commands require a payload.

object

GatewayCommandSchedules define when a GatewayCommand can be executed. Note that this currently applies only to software update type gateway commands.

integer

The number of seconds before the command will be aborted.

string

The _id of the device that will receive the command.

string

The _id of the setting that will receive the command.

string

The _id of the command that will receive the gateway command.

string

The _id of the software update to use for the command. This value is only required when issuing a software_update command.

array of strings

Allows for targeting specific attached device _id's via the gateway device.

attached_device_ids
object

optional. Details about how to retry this gateway command, where supported

string

The type of LWM2M command (use only with command_type lwm2m_request or lwm2m_file).
For lwm2m_request:

  • 'read', 'observe', 'observe_stop', 'exec' you must specify the LWM2M path in the field 'endpoint'
  • 'write' the path in 'endpoint' and the value in the field 'data'

For lwm2m_file:

  • 'fileupload' to push a file to the device, you must specify the file id in the field 'file_id' and the file path on the device in the field 'filepath'
  • 'filedownload' to get a file from the device, you must specify the file path on the device in the field 'filepath'.
string

the LWM2M path targeted by a gateway_command of type lwm2m_request

the value for a LWM2M command of type 'write'

string

for command of type 'lwm2m_file' the path of the file to retrieve or replace on a device

string

for command of type 'lwm2m_file' and type 'fileupload', the identifier of the file to be pushed to the device

Responses
200

Successful operation

401

You are not authorized

404

The item you were looking for does not exist

500

An unexpected error was encountered.

Language
Credentials
Click Try It! to start a request and see the response here!