curl --request POST \
--url https://www.tryunleashx.com/api/v1/global/campaign-force-completed \
--header 'Content-Type: application/json' \
--header 'token: <token>' \
--data '
{
"campaign_id": 123,
"campaign_status": "force_completed"
}
'{
"message": "<string>"
}Force complete a running campaign immediately, halting all pending audience calls.
curl --request POST \
--url https://www.tryunleashx.com/api/v1/global/campaign-force-completed \
--header 'Content-Type: application/json' \
--header 'token: <token>' \
--data '
{
"campaign_id": 123,
"campaign_status": "force_completed"
}
'{
"message": "<string>"
}/campaign-force-completed
Content-Type: application/json
Authentication: Required (workspace auth)
{
"campaign_id": 42,
"campaign_status": "force_completed"
}
| Field | Type | Required | Description |
|---|---|---|---|
campaign_id | number | Yes | ID of the campaign to update |
campaign_status | string | Yes | Target status as a string (see values below) |
| Value | Description |
|---|---|
draft | Campaign is in draft state |
inprogress | Campaign is actively running |
hold | Campaign is on hold |
pause | Campaign is paused |
force_completed | Immediately halts all pending calls and marks campaign as completed |
deleted | Marks the campaign as deleted |
{
"message": "Campaign force completed successfully"
}
campaign_status to its internal numeric code before processing.force_completed: all audience records with status fresh or inqueue are immediately set to halted.curl -X POST https://www.tryunleashx.com/api/v1/global/campaign-force-completed \
-H "Content-Type: application/json" \
-H "Authorization: <api_key>" \
-d '{
"campaign_id": 42,
"campaign_status": "force_completed"
}'
API token for authentication
Campaign force completed successfully
Was this page helpful?