Update an Event for a Subscription.
Event subscribed to in the parent Subscription
Update an Event for a Subscription.
Path parameters
-
The unique SID identifier of the Subscription.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^DF[0-9a-fA-F]{32}$
. -
Type of event being subscribed to.
POST
/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents/{Type}
curl \
--request POST 'https://events.twilio.com/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents/{Type}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'SchemaVersion=2'
Request example
{"SchemaVersion"=>2}
Response examples (200)
{
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/com.twilio.messaging.message.delivered",
"type": "com.twilio.messaging.message.delivered",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"schema_version": 2,
"subscription_sid": "DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}