Event Sources
Create Event Source
Add an additional type for which this event subscription will trigger
Request
POST /event_subscriptions/{subscription_id}/sources
Example Request
curl \
-X POST \
-H "Authorization: Bearer {API_KEY}" \
-H "Content-Type: application/json" \
-H "Ngrok-Version: 2" \
-d '{"type":"ip_policy_updated.v0"}' \
https://api.ngrok.com/event_subscriptions/esb_2cSjz733p0GjWfsLzVJOHLQtERA/sources
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 success
Example Response
{
"type": "ip_policy_updated.v0",
"uri": "https://api.ngrok.com/event_subscriptions/esb_2cSjz733p0GjWfsLzVJOHLQtERA/sources/ip_policy_updated.v0"
}
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 trigger
Request
DELETE /event_subscriptions/{subscription_id}/sources/{type}