Update campaign
Updates a campaign. On an unlaunched draft, a new senderConfig passes the same checks as create and plans are checked at launch. Once the campaign has launched, including a scheduled launch that has not started, a new senderConfig passes the launch checks and can answer 402 campaigns_not_entitled or 400 invalid_parameter. recipientListId points the campaign at another audience while it is still an unlaunched draft and replaces its existing recipients; after launch it answers 409. A sender edit to a draft that launches while the edit is being saved also answers 409. A changed scheduledAt after launch answers 409; use reschedule to move a scheduled start. A non-null scheduledAt must be integer Unix milliseconds from zero through the JavaScript Date maximum. sendWindow changes only while the campaign is a draft or paused; a running campaign answers 409, so pause it first. An edit to a paused campaign also answers 409 while sends are in progress; retry after they settle. A stalled send that has not reached the provider can be recovered on a later edit attempt. If delivery may have started, the edit waits for a definite result rather than sending the recipient again. A new window applies to the remaining recipients when the campaign resumes.
Requires campaigns:manage. Project tokens only access resources in their own project.
Authorizations
Send your team API key or project token as Authorization: Bearer <token>. The credential must have the required permissions. Project tokens can access only their own project.
Path Parameters
Identifier for the campaign.
Query Parameters
Project the campaign belongs to. Required with a team API key; a project token is bound to its own project and omits it.
Body
Fields to change. Omitted fields keep their stored value.
Human-readable name for this resource.
Value constraints
1 - 200Required when using a team API key. Project tokens derive the project from the credential.
Value constraints
Audience to send to. Only while the campaign is an unlaunched draft.
Accepted alternatives
Value constraints
Structured sender config values for this management update platform campaign request.
Scheduled start time in Unix milliseconds. Only while the campaign is an unlaunched draft.
Accepted alternatives
Value constraints
0 <= x <= 8640000000000000When the campaign may send. null removes the window. Only while the campaign is a draft or paused.
Accepted alternatives
Response
Success
Structured data carried by this object.