PUT
/
api
/
v1
/
channels
/
Python (SDK)
import os
from syllable_sdk import SyllableSDK, models


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

    res = ss_client.channels.update(request={
        "name": "twilio",
        "channel_service": models.ChannelServices.SIP,
        "supported_modes": "chat,voice",
        "is_system_channel": False,
        "config": {
            "account_sid": "AC123...",
            "auth_token": "sometoken",
            "telephony": {
                "pre_input_timeout": 1.2,
                "overall_input_timeout": 20,
                "interruptibility": "dtmf_only",
                "passive_speech_input_enabled": True,
                "passive_input_start": 0.5,
            },
        },
        "id": 1,
    })

    # Handle response
    print(res)
{
  "name": "syllable-webchat",
  "channel_service": "webchat",
  "supported_modes": "chat,voice",
  "is_system_channel": false,
  "id": 123,
  "config": {
    "telephony": {
      "interruptibility": "dtmf_only",
      "overall_input_timeout": 20,
      "passive_input_start": 0.5,
      "passive_speech_input_enabled": true,
      "pre_input_timeout": 1.2
    }
  }
}

Authorizations

Syllable-API-Key
string
header
required

Body

application/json

Request model to update a channel through the organizations API

name
string
required

The channel name

Examples:

"twilio"

channel_service
enum<string>
required

The service that facilitates communication on the channel

Available options:
sip,
twilio,
email,
webchat
config
object
required

The configuration of the channel

id
integer
required

The internal ID of the channel

Examples:

1

supported_modes
string | null

The comma-delimited list of supported modes for the channel, which defines the possible communication methods for channel targets linked to it.

Examples:

"chat,voice"

is_system_channel
boolean
default:true

Whether the channel is a built-in system channel (i.e., is not customizable)

Examples:

false

Response

Successful Response

name
string
required

The channel name

Examples:

"syllable-webchat"

channel_service
enum<string>
required

The service that facilitates communication on the channel

Available options:
sip,
twilio,
email,
webchat
id
integer
required

The channel ID

supported_modes
string | null

The comma-delimited list of supported modes for the channel, which defines the possible communication methods for channel targets linked to it.

Examples:

"chat,voice"

is_system_channel
boolean
default:true

Whether the channel is a built-in system channel (i.e., is not customizable)

Examples:

false

config
object | null

Configuration for the channel

Examples:
{
"telephony": {
"interruptibility": "dtmf_only",
"overall_input_timeout": 20,
"passive_input_start": 0.5,
"passive_speech_input_enabled": true,
"pre_input_timeout": 1.2
}
}