Unschedule campaign

Stop a scheduled campaign from sending, like Unschedule in the Campaigns tab.

POST https://cotlet.dev/api/v1/emailoctopus/campaigns/{campaign_id}/unschedule

write

Picks Unschedule from the campaign drop-down, so the campaign no longer goes out at its scheduled time. It reaches no one and is undone by calling schedule_campaign again, so this tool needs no confirmation. Campaigns that are already sending or sent are not affected.

Parameters

Parameters: unschedule_campaign
NameTypeDescription
campaign_id string required string Campaign ID from list_campaigns.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/emailoctopus/campaigns/campaign_8c41d2/unschedule \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("emailoctopus", "unschedule_campaign", {"campaign_id":"campaign_8c41d2"})
Node.js
const result = await cotlet.call('emailoctopus', 'unschedule_campaign', {"campaign_id":"campaign_8c41d2"});
CLI
cotlet call emailoctopus unschedule_campaign --data '{"campaign_id":"campaign_8c41d2"}'

Example response

JSON

{
  "campaign_id": "a2f9d6e3-81b4-4c07-9e5a-7d1c3b8f2e60",
  "name": "Weekly newsletter",
  "scheduled": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.