Skip to main content

Device managed-command SSE channel

GET 

/api/v2/device/:deviceId/events/managed

Long-lived Server-Sent Events stream the device opens after a confirmed handshake. Emits : ping keepalives and command events (Discovery, Push, DeliveryStart, …). Registering the stream marks the device online; closing it marks it offline immediately.

Request​

Path Parameters

    deviceId stringrequired

Header Parameters

    Device-Auth any

Responses​

SSE stream (text/event-stream). Each frame is an event: name (one of: Discovery, Push, DeliveryStart, DeliveryStop, DeliveryCancel, DeliveryDelete, DeployStart, DeployPause, MetadataRequest) plus a data: ReactiveCommandEventDto body. : ping keepalive comments carry no event.

Schema

    oneOf

    event string

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

    data

    object

    catalogId string

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

    force boolean

    Force flag forwarded from the command payload.

    action string

    Manifest action to run for DeployStart (e.g. install, uninstall, restart). Absent means install.

    correlationId string

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

Loading...