Skip to main content
PUT
/
api
/
v1
/
channels
/
twilio
/
{channel_id}
/
numbers
Python (SDK)
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.numbers.update(channel_id=815949, twilio_number_update_request={
        "friendly_name": "Support Line",
        "phone_sid": "PN123",
    })

    # Handle response
    print(res)
{
  "phone_number": "+18042221111"
}

Authorizations

Syllable-API-Key
string
header
required

Path Parameters

channel_id
integer
required

Body

application/json

Request model for updating a Twilio number and associating it with a channel.

friendly_name
string
required

Friendly name for the Twilio number

Examples:

"Support Line"

phone_sid
string
required

Twilio number SID

Examples:

"PN123"

Response

Successful Response

Response model for updating a Twilio number and associating it with a channel.

phone_number
string
required

The updated Twilio phone number

Examples:

"+18042221111"

I