Skip to main content

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

Body

required

    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

    action stringrequired

    Possible values: [Discovery, Push, DeliveryStart, DeliveryStop, DeliveryCancel, DeliveryDelete, DeployStart, MetadataRequest]

    The action to push down the device channel.

    catalogId string

    Catalog id the action applies to (push/delivery/deploy).

    correlationId string

    Optional correlation id echoed back on device acks (D6).

Responses

Schema

    succeeded string[]required

    Device ids that had an open channel and received the command.

    failed string[]required

    Device ids that were offline/unknown — not sent.

    succeededCount numberrequired

    Count of devices the command was sent to.

    failedCount numberrequired

    Count of devices that were offline/unknown.

Loading...