Create Event Source
Add an additional type for which this event subscription will triggerRequest
POST /event_subscriptions/{subscription_id}/sourcesExample Request
Parameters
Name | Type | Description |
---|---|---|
subscription_id | string | The unique identifier for the Event Subscription that this Event Source is attached to. |
type | string | Type of event for which an event subscription will trigger |
Response
Returns a 201 response on successExample Response
Fields
Name | Type | Description |
---|---|---|
type | string | Type of event for which an event subscription will trigger |
uri | string | URI of the Event Source API resource. |
Delete Event Source
Remove a type for which this event subscription will triggerRequest
DELETE /event_subscriptions/{subscription_id}/sources/{type}Example Request
Response
Returns a 204 response with no body on successGet Event Source
Get the details for a given type that triggers for the given event subscriptionRequest
GET /event_subscriptions/{subscription_id}/sources/{type}Example Request
Response
Returns a 200 response on successExample Response
Fields
Name | Type | Description |
---|---|---|
type | string | Type of event for which an event subscription will trigger |
uri | string | URI of the Event Source API resource. |
List Event Sources
List the types for which this event subscription will triggerRequest
GET /event_subscriptions/{subscription_id}/sourcesExample Request
Response
Returns a 200 response on successExample Response
Fields
Name | Type | Description |
---|---|---|
sources | EventSource | The list of all Event Sources for an Event Subscription |
uri | string | URI of the next page, or null if there is no next page. |
EventSource fields
Name | Type | Description |
---|---|---|
type | string | Type of event for which an event subscription will trigger |
uri | string | URI of the Event Source API resource. |
Update Event Source
Update the type for which this event subscription will triggerRequest
PATCH /event_subscriptions/{subscription_id}/sources/{type}Example Request
Parameters
Name | Type | Description |
---|---|---|
subscription_id | string | The unique identifier for the Event Subscription that this Event Source is attached to. |
type | string | Type of event for which an event subscription will trigger |
Response
Returns a 200 response on successExample Response
Fields
Name | Type | Description |
---|---|---|
type | string | Type of event for which an event subscription will trigger |
uri | string | URI of the Event Source API resource. |