Devices
Execute Commands on a Device
Changed onExecute a specified command on a device.
post/devices/{deviceId}/commands
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesx:devices:*
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
- info
added the new optional
queryrequest parameterordered
- info