PUT
/
api
/
v1
/
channels
/
twilio
import os
from syllable_sdk import SyllableSDK


with SyllableSDK(
    api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:

    res = ss_client.channels.twilio.update(request={
        "id": 1,
        "name": "syllable-webchat",
        "config": {
            "account_sid": "AC123...",
            "auth_token": "sometoken",
        },
    })

    # Handle response
    print(res)
{
  "name": "syllable-webchat",
  "channel_service": "webchat",
  "supported_modes": [
    "chat",
    "voice"
  ],
  "is_system_channel": false,
  "id": 123
}

Authorizations

Syllable-API-Key
string
header
required

Body

application/json

Request model for updating a Twilio channel.

Response

200
application/json
Successful Response

The response is of type object.