Devices

Execute Commands on a Device

Changed on

Execute a specified command on a device.

post/devices/{deviceId}/commands

Request

Query parameters

orderedboolean

This parameter has been deprecated. Functionality is not guaranteed.

Specifies whether the command should be executed in order or asynchronously.

Request body

Example request

{
  "commands": [
    {
      "component": "main",
      "capability": "colorTemperature",
      "command": "setColorTemperature",
      "arguments": [
        "30000"
      ]
    }
  ]
}

Response

Created commands.

Changes