Websocket Samples

Org Other Devices Sync

Subscribe to OtherDevice sync events

Websocket Endpoint

WS /api-ws/v1/stream

Subscribe Command

{
    "subscribe": "/orgs/{org_id}/otherdevices/sync"
}

Streamed Data Sample

{
    "event": "data",
    "channel": "/orgs/67970e46-4e12-11e6-9188-0242ac110007/otherdevices/sync",
    "data": {
        "vendor": "cradlepoint",
        "status": "failed",
        "text": "Cannot sync devices, please verify API keys under organization setting."
    }
}

Definitions

NameTypeDescription
eventstringwhat type of event is received.
channelstringfrom which channel the data is received.
vendorstringvendor of otherdevices sync event.
statusstringstatus of event e.g done or failed.
textstringprovides more information on the event.

On this page