Execute Gateway Command on a deviceAsk AIpost https://api.edgeiq.io/api/v1/platform/devices/{id}/gateway_commandExecute Gateway Command on a devicePath ParamsidstringrequiredBody Paramscommand_typestringenumThe type of command.software_updatelwm2m_requestlwm2m_fileAllowed:software_updatelwm2m_requestlwm2m_filepayloadobjectThe payload that is sent to the device. Not all commands require a payload.payload objectscheduleobjectGatewayCommandSchedules define when a GatewayCommand can be executed. Note that this currently applies only to software update type gateway commands.GatewayCommandSchedule objecttimeoutintegerThe number of seconds before the command will be aborted.device_idstringThe _id of the device that will receive the command.settings_idstringThe _id of the setting that will receive the command.command_idstringThe _id of the command that will receive the gateway command.software_update_idstringThe _id of the software update to use for the command. This value is only required when issuing a software_update command.attached_device_idsarray of stringsAllows for targeting specific attached device _id's via the gateway device.attached_device_idsADD stringretry_optionsobjectoptional. Details about how to retry this gateway command, where supportedRetry Options objecttypestringenumThe 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'. readwriteexecuteobserveobserve_stopdownloadfileuploadfiledownloadShow 8 enum valuesendpointstringthe LWM2M path targeted by a gateway_command of type lwm2m_requestdatastringnumberbooleanthe value for a LWM2M command of type 'write'filepathstringfor command of type 'lwm2m_file' the path of the file to retrieve or replace on a devicefile_idstringfor command of type 'lwm2m_file' and type 'fileupload', the identifier of the file to be pushed to the deviceResponse 200OKUpdated 7 months ago