Manage Subscriptions

Get list of subscriptions

Changed on

Gets a list of all subscription for a space.

get/spaces/{spaceId}/subscriptions

Request

  • Base URL
    /hub (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /hub/spaces/{spaceId}/subscriptions
  • Auth
    • API key in query parameter access_token
    • or HTTP bearer

Path parameters

spaceIdstring required

The unique identifier of the space.

Response

The list of subscriptions

idstring

The uniques identifier for the subscription.

sourcestring

The source for the subscribed notification (usually the space).

destinationstring

The destination for the subscribed notification.

Example response

[
  {
    "id": "my-subscription-id",
    "status": {
      "state": "ACTIVE"
    },
    "filter": {
      "jsonPath": "$[?(@.properties.type == 'building')]"
    }
  }
]

Changes

    • warning

      removed the optional property // from the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property / to the response with the status