Send a typed command to a protocol adapter device (TR-069)

Sends the command named in the path to a device whose device type uses a protocol adapter (TR-069), through the adapter (cwmp-server). The request body is the GatewayCommand schema; the fields that matter depend on the command:

  • reboot, reset, heartbeat, status: no body. reset needs allow_sensitive.
  • setting: params with values, add_objects and delete_objects.
  • setting_fetch: params with names.
  • protocol_request: rpc and params (and allow_sensitive for sensitive parameters). rpc is a TR-069 method: GetRPCMethods, GetParameterNames, GetParameterValues, SetParameterValues, GetParameterAttributes, SetParameterAttributes, AddObject, DeleteObject, Download, Upload, Reboot, FactoryReset, ScheduleInform, ScheduleDownload, GetAllQueuedTransfers, CancelTransfer or ChangeDUState, or RunDiagnostic (params type IPPing, TraceRoute, DownloadDiagnostics or UploadDiagnostics, and params) or GetSoftwareModules. The params of ScheduleInform, ScheduleDownload, CancelTransfer, ChangeDUState, SetParameterAttributes, GetParameterAttributes and RunDiagnostic are checked field by field. GetQueuedTransfers, SetVouchers, GetOptions and Kicked are deprecated and refused. A device that does not implement the RPC gets a command with status refused (it lists no such method) or fail (it answers fault 9000), with the reason.
  • update_firmware: url. software_update: software_update_id.
  • log_upload, file_from_device: filepath. file_to_device: file_id and filepath (allow_sensitive for a configuration file).

The device type must be capable of the action and the user must have the ability for it. The response is the gateway command; its progress is read with GET /gateway_commands/{id} (statuses queued, sent, success, fail, refused, cancelled per device).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The _id of the device.

string
enum
required

The command to send.

Body Params
Responses
200

The gateway command that was created

400

The command is invalid: a missing or malformed parameter (for setting and setting_fetch, params with no operation, an unknown key, a value that is not a string, number or boolean, or an empty name), an unknown action, or the device type is not capable of the action. For a protocol adapter device (TR-069) also a schedule (not supported), a software_update that does not exist, is not for the device or has no single file, and a file_to_device whose file does not exist; a protocol_request to a device with no protocol adapter, one whose rpc is unknown or deprecated, and one whose params are wrong for its rpc. The body says why.

403

The user lacks the ability for the action on the device's company (allow_sensitive needs no more than that).

500

The command could not be sent.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!