---
title: "Update AI outbound campaign settings"
description: "Supports optional number_pool_id. Caller selection changes are permitted only in draft; other existing campaign fields retain their behavior. This endpoint does not dial."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Voice AI

`PATCH /api/voice-campaigns/{campaignId}`

Supports optional number_pool_id. Caller selection changes are permitted only in draft; other existing campaign fields retain their behavior. This endpoint does not dial.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `campaignId` (`patch/api/voice-campaigns/campaignId.path.campaignId`; string, required)
  - format `uuid`

## Header parameters

- `x-workspace-id` (`patch/api/voice-campaigns/campaignId.header.x-workspace-id`; string, required)

## Request body

_Required._

- `name` (`patch/api/voice-campaigns/campaignId.name`; string, optional)
- `vapi_assistant_id` (`patch/api/voice-campaigns/campaignId.vapi_assistant_id`; string, optional)
- `engine_phone_number_id` (`patch/api/voice-campaigns/campaignId.engine_phone_number_id`; string, optional)
- `number_pool_id` (`patch/api/voice-campaigns/campaignId.number_pool_id`; string, optional, nullable)
  - format `uuid`
- `daily_dial_cap` (`patch/api/voice-campaigns/campaignId.daily_dial_cap`; integer, optional)
  - min 1

## Example request

```json
{
  "name": "string",
  "vapi_assistant_id": "string",
  "engine_phone_number_id": "string",
  "number_pool_id": "3a45de3c-a4e6-4170-8728-80f90ed3f295",
  "daily_dial_cap": 1
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url 'https://api.channelautomation.com/api/voice-campaigns/<campaignId>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: string' \
  --data '
{
  "name": "string",
  "vapi_assistant_id": "string",
  "engine_phone_number_id": "string",
  "number_pool_id": "3a45de3c-a4e6-4170-8728-80f90ed3f295",
  "daily_dial_cap": 1
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/voice-campaigns/<campaignId>';
const options = {
  method: 'PATCH',
  headers: {
    'Content-Type': 'application/json',
    'x-workspace-id': 'string',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({
    name: 'string',
    vapi_assistant_id: 'string',
    engine_phone_number_id: 'string',
    number_pool_id: '3a45de3c-a4e6-4170-8728-80f90ed3f295',
    daily_dial_cap: 1
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/voice-campaigns/<campaignId>"

payload = {
    "name": "string",
    "vapi_assistant_id": "string",
    "engine_phone_number_id": "string",
    "number_pool_id": "3a45de3c-a4e6-4170-8728-80f90ed3f295",
    "daily_dial_cap": 1
}
headers = {
    "Content-Type": "application/json",
    "x-workspace-id": "string",
    "Authorization": "Bearer <token>"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Campaign saved

### 400

Invalid campaign configuration

### 401

Sign in required

### 403

Workspace or feature access denied

### 404

Campaign or pool not found

### 409

Caller selection can no longer be changed

### 500

Database or engine operation failed


Source: https://developer.channelautomations.com/api/patch-api-voice-campaigns-campaign-id/index.md
