Skip to main content
PUT
Needs campaigns:update, and a role in the workspace that can edit campaigns: owners, managers, content managers and content creators can. See Permissions.
Send only what changes: a field left out keeps what the campaign has. A start_date sent must be in the future, and the end (the one sent, or the campaign’s) must be after the start. As on create, the dates sent are read as UTC and the answer gives them in the workspace’s timezone; see Create a campaign. status: "DRAFT" or "CANCELLED" holds the campaign at that status. Sending SCHEDULED, ACTIVE or COMPLETED lifts a hold, and the dates then decide which of the three it shows. Campaigns are on paid plans. When the workspace owner is on Free, nothing changes and the answer is 403 with error: plan_limit_reached and limit: campaigns. The role and the plan are checked before the body, so on Free a bad body still gets the 403.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

The campaign's id.

Body

application/json
name
string
Maximum string length: 255
status
enum<string>

DRAFT or CANCELLED holds the campaign at that status. SCHEDULED, ACTIVE and COMPLETED follow the dates whatever you send, so sending one of them only lifts a hold.

Available options:
DRAFT,
SCHEDULED,
ACTIVE,
COMPLETED,
CANCELLED
start_date
string

When it starts, like 2030-03-15 09:00, read as UTC. It must be in the future. Left out, it keeps its start.

end_date
string

When it ends, like 2030-03-22 18:00, read as UTC. It must be after start_date (the one sent, or the campaign's).

description
string | null
Maximum string length: 255

Response

The campaign after the change.

A campaign that groups posts.

id
integer
required

The campaign's id. Send it as a post's campaign_id.

name
string
required
Maximum string length: 255
status
enum<string>
required

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
start_date
string
required

When it starts, in the workspace's timezone, as Y-m-d H:i.

end_date
string
required

When it ends, in the workspace's timezone, as Y-m-d H:i.

description
string | null
required
Maximum string length: 255
workspace
object
required

The campaign's workspace, as List workspaces gives it, with no accounts or brand_voice.