Skip to main content

Returns

Returns the updated Phone Connection object.

Example

phone_connection = galtea.phone_connections.update(
    phone_connection_id=phone_connection_id,
    language_code="es",
)

Parameters

phone_connection_id
string
required
ID of the phone connection to update.
name
string
New name for the phone connection.
phone_number
string
New phone number in E.164 format (e.g., +14155552671).
voice
string
New TTS voice for the simulated caller (Speechmatics, English-only). Supported values: sarah (en-GB female), theo (en-GB male), megan (en-US female), jack (en-US male). Pass None to clear it back to the default voice (sarah). An unsupported value is rejected with HTTP 400. Use list_voices() to retrieve the current catalog.
language_code
string
New language code for the call (e.g., en, es).
agent_speaks_first
boolean
Whether the voice agent opens the conversation once the call connects (True/False). Pass PydanticUndefined (the default) to leave the current value unchanged.
All fields except phone_connection_id default to PydanticUndefined (from pydantic_core). Omit a field (or pass PydanticUndefined) to leave it unchanged. Pass None to explicitly clear an optional field. Pass a value to update it.