## Cancel a campaign

`campaigns.cancel(id) -> CampaignCancelResponse`

**post** `/campaigns/{id}/cancel`

Cancel a running or scheduled campaign. Pending and queued calls will be aborted, while in-progress calls will be allowed to finish. Unlike deletion, the campaign and its rows are preserved for historical reference.

### Parameters

- `id: String`

### Returns

- `class CampaignCancelResponse`

  - `success: bool`

### Example

```ruby
require "revox"

revox = Revox::Client.new(api_key: "My API Key")

response = revox.campaigns.cancel("id")

puts(response)
```

#### Response

```json
{
  "success": true
}
```
