post https://a.klaviyo.com/api/v1/campaign//cancel
Cancels a campaign send. Marks a campaign as cancelled regardless of it's current status.
Response
Cancels a campaign send. Marks a campaign as cancelled regardless of it's current status.
xxxxxxxxxx
curl --request POST \
--url 'https://a.klaviyo.com/api/v1/campaign/CAMPAIGN_ID/cancel?api_key=PRIVATE_API_KEY' \
--header 'accept: application/json'
xxxxxxxxxx
48}
{
"object": "campaign",
"id": "CAMPAIGN_ID",
"name": "Campaign Name",
"subject": "Company Monthly Newsletter",
"from_email": "george.washington@klaviyo.com",
"from_name": "George Washington",
"lists": [
{
"object": "list",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"list_type": "list",
"folder": "string",
"created": "2019-08-24T14:15:22Z",
"updated": "2019-08-24T14:15:22Z",
"person_count": 0
}
],
"excluded_lists": [
{
"object": "list",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"list_type": "list",
"folder": "string",
"created": "2019-08-24T14:15:22Z",
"updated": "2019-08-24T14:15:22Z",
"person_count": 0
}
],
"status": "draft",
"status_id": 0,
"status_label": "Scheduled",