Update an existing Interaction

POST /v1/Interactions/{InteractionSid}/Channels/{Sid}

TODO: Resource-level docs

Update an existing Interaction.

Path parameters

  • InteractionSid string Required

    The Interaction Sid for this channel.

  • Sid string Required

    The unique string created by Twilio to identify an Interaction Channel resource.

application/x-www-form-urlencoded

Body

  • The Interaction Channel's routing parameters. Optional, may contain status to set the agent's Reservation state to either closed or wrapup. Default is wrapup if unspecified.

  • Status string Required

    The Interaction Channel's status. Can be: closed or wrapup.

    Values are close, closed, or wrapup.

Responses

  • 200

    OK

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

      The Interaction Sid for this channel.

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

    • sid string | null

      The unique string that identifies the resource

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

    • type string | null

      The Interaction Channel's type.

      Values are voice, sms, email, web, whatsapp, or chat.

    • url string(uri) | null
POST /v1/Interactions/{InteractionSid}/Channels/{Sid}
curl \
 -X POST https://flex-api.twilio.com/v1/Interactions/{InteractionSid}/Channels/{Sid} \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Status=close'
Request example
{
  "Status": "close"
}
Response examples (200)
{
  "interaction_sid": "string",
  "links": {},
  "sid": "string",
  "type": "voice",
  "url": "https://example.com"
}