Manage Subscriptions
Create a subscription
Changed onCreates a subscription.
post/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.
Request body
Example request
{
"id": "my-subscription-id",
"status": {
"state": "ACTIVE"
},
"filter": {
"jsonPath": "$[?(@.properties.type == 'building')]"
}
}Response
The subscription
Example response
{
"id": "my-subscription-id",
"status": {
"state": "ACTIVE"
},
"filter": {
"jsonPath": "$[?(@.properties.type == 'building')]"
}
}Changes
- warning
removed the request property
/ - warning
removed the optional property
/from the response with the status - info
added the new optional request property
/ - info
added the optional property
/to the response with the status
- warning
- info
added the new optional request property
- info
added the optional property
to the response with the status
- info