Unschedule campaign

Cancel the schedule of a campaign so it can be edited.

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

write

Cancels the scheduled send, which Mailjet requires before you can change a scheduled campaign. The campaign returns to draft with its content, list and segment. It stops mail instead of sending it and is undone with schedule_campaign, so it does not wait for your OK.

Parameters

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

Request

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

Example response

JSON

{
  "campaign_id": 7203318846,
  "name": "Weekly digest, Oct 23",
  "status": "draft"
}

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.