POST
/
subscriptions
Create a subscription
curl --request POST \
  --url https://{FUSION HOST}/api/subscriptions \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "resource": "<string>",
  "topic": "<string>",
  "numberOfListenerThreads": 123,
  "maxRetries": 123,
  "initialPosition": "<string>",
  "contextProperties": {},
  "id": "<string>"
}'
{
  "resource": "<string>",
  "topic": "<string>",
  "numberOfListenerThreads": 123,
  "maxRetries": 123,
  "initialPosition": "<string>",
  "contextProperties": {},
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

context
string

The app to which this object belongs, as app:SomeApp. If the object is not part of this app, the request fails. Other comma-separated contexts in the context parameter are allowed but ignored.

Body

application/json

Response

201 - application/json

Created

The response is of type object.