Path Parameters
campaign_id(integer, required): The unique identifier of the campaign
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
contact_selection | string or array | Yes | Which contacts to include |
schedule_settings | object | No | Scheduling configuration |
Contact Selection Options
| Value | Description |
|---|---|
"all" | Reset and re-contact all contacts |
"failed_only" | Only retry failed, no_answer, busy, voicemail contacts |
[1, 2, 3] | Array of specific contact IDs to retry |
Schedule Settings
| Field | Type | Description |
|---|---|---|
schedule_type | string | immediate, scheduled, or recurring |
scheduled_at | string | ISO 8601 datetime for scheduled type |
timezone | string | Timezone for scheduling |
Example Requests
Re-execute all contacts immediately:Response
Response (Immediate)
Response (Scheduled)
Example Code
cURL
Python
JavaScript
Behavior
When re-executing a campaign:- Selected contacts are reset to
pendingstatus - Non-selected contacts are marked as
skipped - Campaign counters are reset to 0
- Metrics are cleared for fresh tracking
- Execution history is preserved for audit
- Campaign status becomes
draft(immediate) orscheduled
Error Responses
| Status Code | Description |
|---|---|
| 400 | Campaign status doesn’t allow re-execution |
| 400 | No contacts match the selection criteria |
| 400 | Scheduled time is in the past |
| 404 | Campaign not found |
Valid Starting Statuses
Re-execution is only available for:completed- All contacts processedcancelled- Campaign was stoppedfailed- Campaign encountered an error