Dispatch a reactive command to one, many, or all connected devices
POST/api/v1/device/reactive/command
Pushes a command event (Discovery, Push, DeliveryStart, …) down each target device's managed-command SSE channel. deviceId accepts a single id or an array; pass the literal "all" to target every currently-connected device. Always returns a succeeded/failed summary — offline devices are reported, never an error.
Request
- application/json
Body
required
- MOD1
- MOD2
Array [
]
deviceId
object
required
Target device id(s): a single id, an array of ids, or the literal "all" to target every currently-connected device. Required and non-empty.
oneOf
string
string
Possible values: [Discovery, Push, DeliveryStart, DeliveryStop, DeliveryCancel, DeliveryDelete, DeployStart, DeployPause, MetadataRequest]
The action to push down the device channel.
Catalog id the action applies to (push/delivery/deploy).
Force the action, bypassing device-side guards (e.g. resume a paused deploy).
Manifest action to run for DeployStart (e.g. install, uninstall, restart). Forwarded to the device as the event action. Absent means install.
Optional correlation id echoed back on device acks (D6).
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
Device ids that had an open channel and received the command.
Device ids that were offline/unknown — not sent.
Count of devices the command was sent to.
Count of devices that were offline/unknown.
{
"succeeded": [
"string"
],
"failed": [
"string"
],
"succeededCount": 0,
"failedCount": 0
}