# Update a campaign

`PATCH https://www.getrevox.com/api/campaigns/{id}`

Update a campaign's name, outbound number, retry configuration (calling hours, retry delay, max attempts) and concurrency cap. Changes are applied to the campaign's calls that have not completed yet. The assistant is fixed at creation; add contacts with POST /campaigns/:id/rows, and choose when calls go out with POST /campaigns/:id/launch-calls.

## Path parameters

- `id` (string, required)

## Request body (JSON)

- `name` (string, optional): Campaign display name Constraints: min length 1, max length 255.
- `from_phone_number` (string, optional, nullable): The phone number to use for outbound calls. Editable after launch; applied to the campaign's calls that have not completed yet.
- `max_concurrent_calls` (number, optional, nullable): Maximum concurrent calls. Editable after launch. Constraints: min 1.
- `call_retry_config` ([CallRetryConfig](https://www.getrevox.com/docs/api/objects/call-retry-config.md), optional, nullable): Override retry configuration (calling hours, retry delay, max attempts). Editable after launch; applied to the campaign's calls that have not completed yet, whose next attempt is re-scheduled under the new configuration. Its max_retry_attempts is only the default for max_attempts in POST /campaigns/:id/launch-calls.

## Example request

```bash
curl -X PATCH https://www.getrevox.com/api/campaigns/3c90c3cc-0d44-4b50-8888-8dd25736052a \
  -H "Authorization: Bearer $REVOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Appointment reminder"
  }'
```

## Responses

### 200: Success

- `campaign` ([Campaign](https://www.getrevox.com/docs/api/objects/campaign.md), required)

### 400: Invalid request: the body or a parameter failed validation

- `message` (string, optional)
- `error` (string, optional)
- `bodyErrors` (object, optional): The validation errors returned from the API.
  - `issues` (array of object, required)
    - `path` (array of one of, required)
      - One of, **string** (string)
      - One of, **number** (number)
    - `message` (string, required)
    - `code` (string, optional)

### 404: Not found in your organization

- `error` (string, required)