Updates an interaction.

POST /v1/Interactions/{Sid}

Updates an interaction.

Path parameters

  • Sid string Required

    The SID of the Interaction resource to fetch.

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

application/x-www-form-urlencoded

Body

  • WebhookTtid string

    The unique identifier for Interaction level webhook

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

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

      The unique string created by Twilio to identify an Interaction resource, prefixed with KD.

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

    • channel

      A JSON object that defines the Interaction’s communication channel and includes details about the channel. See the Outbound SMS and inbound (API-initiated) Channel object examples.

    • routing

      A JSON Object representing the routing rules for the Interaction Channel. See Outbound SMS Example for an example Routing object. The Interactions resource uses TaskRouter for all routing functionality. All attributes in the Routing object on your Interaction request body are added “as is” to the task. For a list of known attributes consumed by the Flex UI and/or Flex Insights, see Known Task Attributes.

    • url string(uri) | null
    • interaction_context_sid string | null

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

    • webhook_ttid string | null
POST /v1/Interactions/{Sid}
curl \
 --request POST 'https://flex-api.twilio.com/v1/Interactions/{Sid}' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'WebhookTtid=flex_interactionwebhook_01jke8z8vte4ette30t5w9h081'
Request example
{"WebhookTtid"=>"flex_interactionwebhook_01jke8z8vte4ette30t5w9h081"}
Response examples (200)
{
  "sid": "KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://flex-api.twilio.com/v1/Interactions/KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "links": {
    "channels": "https://flex-api.twilio.com/v1/Interactions/KDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels"
  },
  "channel": {
    "sid": "UOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "type": "sms"
  },
  "routing": null,
  "webhook_ttid": "flex_interactionwebhook_01jke8z8vte4ette30t5w9h081",
  "interaction_context_sid": null
}