curl --request POST \
--url https://api.example.com/api/v1/campaigns/{campaign_id}/playground/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cancelled_count": 123
}DB-authoritative cancel — flip generation_job.status to ‘cancelled’.
curl --request POST \
--url https://api.example.com/api/v1/campaigns/{campaign_id}/playground/cancel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'{
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cancelled_count": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.bavlio.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
POST /campaigns/{id}/playground/cancel body.
Batch id to cancel; only leads with this batch_id are affected.