Skip to main content

Dispatch a command

POST/devices/{deviceId}/commands
Queue a command for a device or one of its peripherals. Idempotent on Idempotency-Key.

Parameters

deviceIdpathrequired
string

Request Body

type*string
payloadobject
peripheralIdstring
idempotencyKeystring

Response

Command dispatched

command*object
id*string
deviceId*string
peripheralId*stringnull
type*string
status*string
payload*object
idempotencyKey*stringnull
progress*objectnull
result*objectnull
createdBy*objectnull
expiresAt*string
createdAt*string
deliveredAt*stringnull
completedAt*stringnull
Code Samples
No code examples available for this operation.

Try It

Path Parameters
Request Body