Campaigns
Create a campaign
Make a campaign that groups posts between two dates.
POST
Needs
campaigns:create, and a role in the workspace that can create campaigns: owners, managers, content managers and content creators can. See Permissions.name, start_date and end_date are needed: the start must be in the future and the end after it. Send the answer’s id as a post’s campaign_id when you create or update it.
Leave status out and it follows the dates: SCHEDULED until the start, ACTIVE until the end, then COMPLETED. Send DRAFT or CANCELLED to hold it at that status. Sending SCHEDULED, ACTIVE or COMPLETED changes nothing: the dates decide which of the three it shows. The status only describes the campaign: it doesn’t hold back or send its posts.
Campaigns are on paid plans. When the workspace owner is on Free, nothing is saved and the answer is 403 with error: plan_limit_reached and limit: campaigns. The owner’s key gets upgrade_url and upgrade_plan; anyone else’s is told to ask the owner (owner_plan: true, no upgrade_url).
Errors
Related
- List campaigns: the campaigns there are.
- Update a campaign: change its dates, or hold it.
Authorizations
Body
application/json
Response
The campaign.
A campaign that groups posts.
SCHEDULED until start_date, ACTIVE until end_date, then COMPLETED: these follow the dates when the campaign is read. DRAFT and CANCELLED are holds set on the campaign, which stay until it is changed. The status only describes the campaign: it doesn't hold back or send its posts.
Available options:
DRAFT, SCHEDULED, ACTIVE, COMPLETED, CANCELLED The campaign's workspace, as List workspaces gives it, with no accounts or brand_voice.