Unschedule a campaign

Move a scheduled campaign back to draft.

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

write

Does what Unschedule Campaign does in the Campaigns menu. Privy allows it only before preparation starts; after that, a time zone send needs Cancel send in Privy, which this tool does not do. It reaches no one and can be undone with send_email_campaign, so it does not wait for your OK.

Parameters

Parameters: unschedule_campaign
NameTypeDescription
campaign_id string required string Scheduled campaign (id from list_campaigns)

Request

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

Example response

JSON

{
  "campaign_id": "cmp_5b92",
  "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.