> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galtea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Phone Connection

> Update an existing phone connection.

> [!WARNING]
>
> You are reading the docs of Galtea 5.15. [Read this page in the latest version](https://docs.galtea.ai/sdk/api/phone-connection/update.md).

## Returns

Returns the updated [Phone Connection](https://docs.galtea.ai/v5.15/concepts/product/phone-connection.md) object.

## Example

```python theme={"system"}
phone_connection = galtea.phone_connections.update(
    phone_connection_id=phone_connection_id,
    agent_speaks_first=True,
)
```

## 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](https://en.wikipedia.org/wiki/E.164) (e.g., `+14155552671`).

**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.

> [!NOTE]
>
> 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.