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

# roark connections agent update

> Update an agent connection

Changes a connection’s settings or rotates its credential. Send `provider` (it must match the connection’s) and only the fields to change; the rest keep their stored values. A new Retell, Vapi, ElevenLabs or Bland key is checked by listing agents first. Set `status` to INACTIVE to pause syncing without deleting anything.

```bash Synopsis theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark connections agent update <connection-id> [options]
```

> [!NOTE]
>
> Calls `PATCH /v1/connections/agent/{connectionId}`

## Arguments

**connection-id** `string` *required*

The connection-id.

## Request body

This endpoint accepts one of several request shapes, so the body is supplied as
JSON through `--data` or on standard input rather than as individual flags.

**AgentConnectionUpdateRetell** `object`

Requires `provider`

**AgentConnectionUpdateVapi** `object`

Requires `provider`

**AgentConnectionUpdateElevenLabs** `object`

Requires `provider`

**AgentConnectionUpdateBland** `object`

Requires `provider`

**AgentConnectionUpdateLeaping** `object`

Requires `provider`

**AgentConnectionUpdateLivekit** `object`

Requires `provider`

**AgentConnectionUpdateLivekitSelfHosted** `object`

Requires `provider`

**AgentConnectionUpdatePipecatSelfHosted** `object`

Requires `provider`

**AgentConnectionUpdatePipecatCloud** `object`

Requires `provider`

**AgentConnectionUpdateKore** `object`

Requires `provider`

**AgentConnectionUpdateGoogleCes** `object`

Requires `provider`

## Example

```bash theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark connections agent update <connection-id> --data '{ ... }'
```

Every command also takes the [global options](https://docs.roark.ai/cli-reference/overview.md#global-options) and sets one
of the [exit codes](https://docs.roark.ai/cli-reference/overview.md#exit-codes).


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