Update an existing conversation-scoped webhook
A Conversation-scoped Webhook resource manages a set of callback URLs and their configuration for receiving events specific to one conversation.
Update an existing conversation-scoped webhook
Path parameters
-
The SID of the Conversation Service the Participant resource is associated with.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^IS[0-9a-fA-F]{32}$
. -
The unique ID of the Conversation for this webhook.
-
A 34 character string that uniquely identifies this resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^WH[0-9a-fA-F]{32}$
.
Body
-
The absolute url the webhook request should be sent to.
-
Values are
get
orpost
. -
The list of events, firing webhook event for this Conversation.
-
The list of keywords, firing webhook event for this Conversation.
-
The studio flow SID, where the webhook should be sent to.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^FW[0-9a-fA-F]{32}$
.
curl \
--request POST 'https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Configuration.Url=https%3A%2F%2Fexample.com&Configuration.Method=post&Configuration.Triggers=keyword1&Configuration.Triggers=keyword2'
{"Configuration.Url"=>"https://example.com", "Configuration.Method"=>"post", "Configuration.Triggers"=>["keyword1", "keyword2"]}
{
"sid": "WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Webhooks/WHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"target": "trigger",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2016-03-24T21:05:50Z",
"date_updated": "2016-03-24T21:05:51Z",
"configuration": {
"url": "https://example.com",
"method": "post",
"filters": [
"keyword1",
"keyword2"
]
},
"chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}