Unsubscribe from an event store
DELETE /api/event-stores/{eventStoreName}/subscriptions/{subscriptionId}
DELETE
/api/event-stores/{eventStoreName}/subscriptions/{subscriptionId}
Removes an existing subscription to stop receiving events
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” eventStoreName
required
Event store name (automatically scoped to your organization)
string
Event store name (automatically scoped to your organization)
subscriptionId
required
Unique identifier for the subscription to remove
string
Unique identifier for the subscription to remove
Responses
Section titled “ Responses ”Subscription successfully removed
object
success
required
boolean
message
required
string
Examples
{ "success": true, "message": "Subscription successfully removed"}Unauthorized: Organization ID not found in authentication context
object
error
required
Error type
string
message
required
Human-readable error message
string
details
Additional error details
object
key
additional properties
Examples
{ "error": "UNAUTHORIZED", "message": "Unauthorized"}Subscription or event store not found
object
error
required
Error type
string
message
required
Human-readable error message
string
details
Additional error details
object
key
additional properties
Examples
{ "error": "SUBSCRIPTION_NOT_FOUND", "message": "The specified subscription does not exist", "details": { "eventStoreName": "production", "subscriptionId": "sub_nonexistent" }}Internal server error
object
error
required
Error type
string
message
required
Human-readable error message
string
details
Additional error details
object
key
additional properties