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

# Update a campaign agent

> Partially update a Campaign Manager agent. Only the fields you send are changed; running campaigns keep the agent snapshot taken at launch.

```http theme={null}
PUT https://api.vobiz.ai/api/v1/account/{account_id}/campaign/agents/{agent_id}
```

Updates are partial — only the fields you supply change.

> [!NOTE]
>
> **Authentication required**
>
> * `X-Auth-ID` — your Vobiz account ID
> * `X-Auth-Token` — your Vobiz auth token

**account\_id** `string` *required*

Your Vobiz account ID. Use the same value in `X-Auth-ID`.

**X-Auth-ID** `string` *required*

Your Vobiz account ID, for example `MA_XXXXXXXX`.

**agent\_id** `string` *required*

ID of the agent, returned by [Create an agent](https://www.vobiz.ai/docs/campaign-manager/agents/create-agent.md).

**name** `string`

New agent name. Unique per account, maximum 100 characters.

**answer\_url** `string`

HTTPS URL called when the contact answers.

**answer\_method** `string`

`GET` or `POST`.

**hangup\_url** `string`

URL called when the call ends.

**hangup\_method** `string`

`GET` or `POST`.

**static\_headers** `array`

Replaces the existing array of `{ key, value }` SIP headers.

## Example

```bash cURL theme={null}
curl -X PUT \
  "https://api.vobiz.ai/api/v1/account/{account_id}/campaign/agents/{agent_id}" \
  -H "X-Auth-ID: {account_id}" \
  -H "X-Auth-Token: {auth_token}" \
  -H "Content-Type: application/json" \
  -d '{ "answer_url": "https://example.com/answer-v2" }'
```

> [!WARNING]
>
> Campaigns that are already `running` or `queued` use the agent snapshot frozen at launch. Your edit applies to the next launch, not to work already in flight.


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