Subscriptions
Subscriptions: 7 operations, tagged subscriptions in the OpenAPI document.
| Method | Path | Summary |
|---|---|---|
GET |
/api/subscriptions |
List subscriptions |
POST |
/api/subscriptions |
Create a subscription |
GET |
/api/subscriptions/{id} |
Get a subscription by id |
PUT |
/api/subscriptions/{id} |
Update a subscription |
DELETE |
/api/subscriptions/{id} |
Delete a subscription |
POST |
/api/subscriptions/{id}/pause |
Pause a subscription |
POST |
/api/subscriptions/{id}/resume |
Resume a subscription |
Operations
Section titled “Operations”GET /api/subscriptions
Section titled “GET /api/subscriptions”List subscriptions
Operation ID: listSubscriptions
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status |
query | string | no | |
clientId |
query | string | no |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json SubscriptionListResponse |
default |
Error | application/json ErrorModel |
POST /api/subscriptions
Section titled “POST /api/subscriptions”Create a subscription
Operation ID: createSubscription
Request body (required)
| Content type | Schema |
|---|---|
application/json |
CreateSubscriptionRequest |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created | application/json CreatedResponse |
default |
Error | application/json ErrorModel |
GET /api/subscriptions/{id}
Section titled “GET /api/subscriptions/{id}”Get a subscription by id
Operation ID: getSubscription
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json SubscriptionResponse |
default |
Error | application/json ErrorModel |
PUT /api/subscriptions/{id}
Section titled “PUT /api/subscriptions/{id}”Update a subscription
Operation ID: updateSubscription
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
UpdateSubscriptionRequest |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
DELETE /api/subscriptions/{id}
Section titled “DELETE /api/subscriptions/{id}”Delete a subscription
Operation ID: deleteSubscription
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
POST /api/subscriptions/{id}/pause
Section titled “POST /api/subscriptions/{id}/pause”Pause a subscription
Operation ID: pauseSubscription
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
POST /api/subscriptions/{id}/resume
Section titled “POST /api/subscriptions/{id}/resume”Resume a subscription
Operation ID: resumeSubscription
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
Schemas
Section titled “Schemas”ConfigEntryDTO
Section titled “ConfigEntryDTO”| Field | Type | Required | Description |
|---|---|---|---|
key |
string | yes | |
value |
string | yes |
CreatedResponse
Section titled “CreatedResponse”| Field | Type | Required | Description |
|---|---|---|---|
id |
string | yes |
CreateSubscriptionRequest
Section titled “CreateSubscriptionRequest”| Field | Type | Required | Description |
|---|---|---|---|
clientId |
string | no | |
clientScoped |
boolean | no | Subscribes to client-scoped event types. Omitted means false. |
code |
string | yes | |
connectionId |
string | no | |
customConfig |
ConfigEntryDTO[] |
no | |
dataOnly |
boolean | no | |
delaySeconds |
integer (int32) | no | |
description |
string | no | |
dispatchPoolId |
string | no | |
endpoint |
string | yes | http(s) URL delivery target |
eventTypes |
EventTypeBindingDTO[] |
no | |
maxAgeSeconds |
integer (int32) | no | |
maxRetries |
integer (int32) | no | |
mode |
string | no | Dispatch mode. Omitted means NEXT_ON_ERROR: a message group is delivered in sequence, one at a time, moving on past a failure. BLOCK_ON_ERROR stops the group at a failure instead; IMMEDIATE opts out of ordering entirely. Ordering applies only to messages that carry a message group. |
name |
string | yes | |
queue |
string | no | Dispatch priority: DEFAULT or HIGH_PRIORITY (matched ignoring case). Selects which of the client’s two dispatch queues jobs raised from this subscription publish to. Omitted or blank leaves it unset, which publishes as DEFAULT. |
sequence |
integer (int32) | no | Orders this subscription’s dispatch jobs within a message group, lower first. Omitted means 99. Not negative. |
serviceAccountId |
string | no | |
timeoutSeconds |
integer (int32) | no |
EventTypeBindingDTO
Section titled “EventTypeBindingDTO”| Field | Type | Required | Description |
|---|---|---|---|
eventTypeCode |
string | yes | |
eventTypeId |
string | no | |
filter |
string | no | Not supported. Must be absent or empty; a non-empty filter is refused with 400 FILTER_NOT_SUPPORTED (filters were never applied: a binding receives every event of its type). |
specVersion |
string | no |
SubscriptionListResponse
Section titled “SubscriptionListResponse”| Field | Type | Required | Description |
|---|---|---|---|
subscriptions |
SubscriptionResponse[] |
yes | |
total |
integer (int64) | yes |
SubscriptionResponse
Section titled “SubscriptionResponse”| Field | Type | Required | Description |
|---|---|---|---|
applicationCode |
string | no | |
clientId |
string | no | |
clientIdentifier |
string | no | |
clientScoped |
boolean | yes | |
code |
string | yes | |
connectionId |
string | no | |
createdAt |
string (date-time) | yes | |
createdBy |
string | no | |
customConfig |
ConfigEntryDTO[] |
yes | |
dataOnly |
boolean | yes | |
delaySeconds |
integer (int32) | yes | |
description |
string | no | |
dispatchPoolCode |
string | no | |
dispatchPoolId |
string | no | |
endpoint |
string | yes | |
eventTypes |
EventTypeBindingDTO[] |
yes | |
id |
string | yes | |
maxAgeSeconds |
integer (int32) | yes | |
maxRetries |
integer (int32) | yes | |
mode |
string | yes | |
name |
string | yes | |
queue |
string | no | |
sequence |
integer (int32) | yes | |
serviceAccountId |
string | no | |
source |
string | yes | |
status |
string | yes | |
timeoutSeconds |
integer (int32) | yes | |
updatedAt |
string (date-time) | yes |
UpdateSubscriptionRequest
Section titled “UpdateSubscriptionRequest”| Field | Type | Required | Description |
|---|---|---|---|
connectionId |
string | no | |
customConfig |
ConfigEntryDTO[] |
no | |
dataOnly |
boolean | no | |
delaySeconds |
integer (int32) | no | |
description |
string | no | |
dispatchPoolId |
string | no | |
endpoint |
string | no | |
eventTypes |
EventTypeBindingDTO[] |
no | |
maxAgeSeconds |
integer (int32) | no | |
maxRetries |
integer (int32) | no | |
mode |
string | no | |
name |
string | no | |
queue |
string | no | Dispatch priority: DEFAULT or HIGH_PRIORITY (matched ignoring case). Omitted leaves the stored value alone; an explicit blank clears it, which publishes as DEFAULT. |
serviceAccountId |
string | no | |
timeoutSeconds |
integer (int32) | no |