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
| Name | Type | Description |
|---|---|---|
| campaign_id string required | string | Campaign ID from list_campaigns. |
Request
curl -X POST https://cotlet.dev/api/v1/emailoctopus/campaigns/campaign_8c41d2/unschedule \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("emailoctopus", "unschedule_campaign", {"campaign_id":"campaign_8c41d2"}) const result = await cotlet.call('emailoctopus', 'unschedule_campaign', {"campaign_id":"campaign_8c41d2"}); cotlet call emailoctopus unschedule_campaign --data '{"campaign_id":"campaign_8c41d2"}' Example response
{
"campaign_id": "a2f9d6e3-81b4-4c07-9e5a-7d1c3b8f2e60",
"name": "Weekly newsletter",
"scheduled": false
}