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, MetadataRequest]
The action to push down the device channel.
Catalog id the action applies to (push/delivery/deploy).
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
}