Update a specific Webhook
A service webhook configuration resource manages a service-level set of callback URLs and their configuration for receiving all the corresponding service events.
Update a specific Webhook.
Path parameters
-
ChatServiceSid
string Required The unique ID of the Conversation Service this conversation belongs to.
Body
-
Filters
array[string] The list of events that your configured webhook targets will receive. Events not configured here will not fire. Possible values are
onParticipantAdd
,onParticipantAdded
,onDeliveryUpdated
,onConversationUpdated
,onConversationRemove
,onParticipantRemove
,onConversationUpdate
,onMessageAdd
,onMessageRemoved
,onParticipantUpdated
,onConversationAdded
,onMessageAdded
,onConversationAdd
,onConversationRemoved
,onParticipantUpdate
,onMessageRemove
,onMessageUpdated
,onParticipantRemoved
,onMessageUpdate
oronConversationStateUpdated
. -
Method
string The HTTP method to be used when sending a webhook request. One of
GET
orPOST
. -
PostWebhookUrl
string(uri) The absolute url the post-event webhook request should be sent to.
-
PreWebhookUrl
string(uri) The absolute url the pre-event webhook request should be sent to.
curl \
-X POST https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Configuration/Webhooks \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Filters=string&Method=string&PostWebhookUrl=https%3A%2F%2Fexample.com&PreWebhookUrl=https%3A%2F%2Fexample.com'
{
"Filters": [
"string"
],
"Method": "string",
"PostWebhookUrl": "https://example.com",
"PreWebhookUrl": "https://example.com"
}
{
"Filters": [
"string"
],
"Method": "string",
"PostWebhookUrl": "https://example.com",
"PreWebhookUrl": "https://example.com"
}
{
"account_sid": "string",
"chat_service_sid": "string",
"filters": [
"string"
],
"method": "GET",
"post_webhook_url": "https://example.com",
"pre_webhook_url": "https://example.com",
"url": "https://example.com"
}
{
"account_sid": "string",
"chat_service_sid": "string",
"filters": [
"string"
],
"method": "GET",
"post_webhook_url": "https://example.com",
"pre_webhook_url": "https://example.com",
"url": "https://example.com"
}