Skip to main content
PATCH
/
event_subscriptions
/
{subscription_id}
/
sources
/
{type}
Update
curl --request PATCH \
  --url https://api.ngrok.com/event_subscriptions/{subscription_id}/sources/{type} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'ngrok-version: <ngrok-version>' \
  --data '{
  "subscription_id": "<string>",
  "type": "<string>"
}'
{
  "type": "<string>",
  "uri": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

ngrok-version
integer
default:2
required

Path Parameters

subscription_id
string
required

The unique identifier for the Event Subscription that this Event Source is attached to.

type
string
required

Type of event for which an event subscription will trigger

Body

application/json
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

200 - application/json

Update the type for which this event subscription will trigger

type
string

Type of event for which an event subscription will trigger

uri
string

URI of the Event Source API resource.