Update an existing conversation-scoped webhook

POST /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}

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

application/x-www-form-urlencoded

Body

  • The list of events, firing webhook event for this Conversation.

  • The studio flow SID, where the webhook should be sent to.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^FW[0-9a-fA-F]{32}$.

  • The HTTP method to be used when sending a webhook request.

    Values are GET or POST.

  • The list of keywords, firing webhook event for this Conversation.

  • The absolute url the webhook request should be sent to.

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • account_sid string | null

      The unique ID of the Account responsible for this conversation.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • chat_service_sid string | null

      The SID of the Conversation Service that the resource is associated with.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^IS[0-9a-fA-F]{32}$.

    • The configuration of this webhook.

    • conversation_sid string | null

      The unique ID of the Conversation for this webhook.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^CH[0-9a-fA-F]{32}$.

    • date_created string(date-time) | null

      The date that this resource was created.

    • date_updated string(date-time) | null

      The date that this resource was last updated.

    • sid string | null

      A 34 character string that uniquely identifies this resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^WH[0-9a-fA-F]{32}$.

    • target string | null

      The target of this webhook.

    • url string(uri) | null

      An absolute URL for this webhook.

POST /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}
curl \
 -X POST https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid} \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Configuration.Filters=string&Configuration.FlowSid=string&Configuration.Method=GET&Configuration.Triggers=string&Configuration.Url=string'
Request example
{
  "Configuration.Filters": [
    "string"
  ],
  "Configuration.FlowSid": "string",
  "Configuration.Method": "GET",
  "Configuration.Triggers": [
    "string"
  ],
  "Configuration.Url": "string"
}
Response examples (200)
{
  "account_sid": "string",
  "chat_service_sid": "string",
  "conversation_sid": "string",
  "date_created": "2023-05-04T09:42:00+00:00",
  "date_updated": "2023-05-04T09:42:00+00:00",
  "sid": "string",
  "target": "string",
  "url": "https://example.com"
}