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

## Returns

Returns the updated [Phone Connection](/concepts/product/phone-connection) object.

## Example

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

## Parameters

<ResponseField name="phone_connection_id" type="string" required>
  ID of the phone connection to update.
</ResponseField>

<ResponseField name="name" type="string" optional>
  New name for the phone connection.
</ResponseField>

<ResponseField name="phone_number" type="string" optional>
  New phone number in [E.164 format](https://en.wikipedia.org/wiki/E.164) (e.g., `+14155552671`).
</ResponseField>

<ResponseField name="agent_speaks_first" type="boolean" optional>
  Whether the voice agent opens the conversation once the call connects (`True`/`False`). Pass `PydanticUndefined` (the default) to leave the current value unchanged.
</ResponseField>

<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.
</Note>
