Subscriptions
Create a persistent subscription
Before interacting with a subscription group, you need to create one. You will receive an error if you attempt to create a subscription group more than once. This requires admin permissions.
put/subscriptions/{stream}/{subscription}
Path parameters
streamstring required
The stream the persistent subscription is on.
subscriptionstring required
The name of the subscription group.
Request body
Example request
{
"minCheckPointCount": 2,
"startFrom": 0,
"ResolveLinkTos": true,
"readBatchSize": 5,
"namedConsumerStrategy": "RoundRobin",
"extraStatistics": true,
"maxRetryCount": 7,
"liveBufferSize": 1,
"messageTimeoutMilliseconds": 3,
"maxCheckPointCount": 2,
"maxSubscriberCount": 9,
"checkPointAfterMilliseconds": 6,
"bufferSize": 5
}Response
Subscription created