> ## 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 WebRTC Connection

> Update an existing WebRTC connection.

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

## Returns

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

## Example

```python theme={"system"}
web_rtc_connection = galtea.web_rtc_connections.update(
    web_rtc_connection_id=web_rtc_connection_id,
    agent_speaks_first=True,
)
```

## Parameters

**web\_rtc\_connection\_id** `string` *required*

ID of the WebRTC connection to update.

**name** `string`

New name for the WebRTC connection.

**api\_key** `string`

New Pipecat Cloud **public API key** (`pk_...`, the runtime `/start` credential, not the `pcc_pat_` deploy token). This is a secret. The API never returns it, so you cannot read it back. Leave this field unset to keep the stored key. Pass a value to replace it.

**agent\_name** `string`

New Pipecat Cloud agent name. It must match a deployed agent's name exactly.

**agent\_speaks\_first** `boolean`

Whether the voice agent opens the conversation once the session connects (`True`/`False`). Pass `PydanticUndefined` (the default) to leave the current value unchanged.

> [!NOTE]
>
> All fields except `web_rtc_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.