PUT
/
api
/
v1
/
channels
/
twilio
/
{channel_id}
/
numbers
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.

Response

200
application/json

Successful Response

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