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
| Name | Type | Description |
|---|---|---|
| campaign_id string required | string | Scheduled campaign (id from list_campaigns) |
Request
curl -X POST https://cotlet.dev/api/v1/privy/campaigns/campaign_8c41d2/unschedule \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("privy", "unschedule_campaign", {"campaign_id":"campaign_8c41d2"}) const result = await cotlet.call('privy', 'unschedule_campaign', {"campaign_id":"campaign_8c41d2"}); cotlet call privy unschedule_campaign --data '{"campaign_id":"campaign_8c41d2"}' Example response
{
"campaign_id": "cmp_5b92",
"status": "draft"
}