Campaigns
Update Campaign
Update a draft campaign, or fix the content of a paused one
PUT
Update Campaign
If you use an account key as a marketer, choose an existing sender and
Reply-To profile. A request that needs a new profile returns
400 before
creating profiles, labels, or campaign/sequence changes. This also applies to
email steps and inserted sequence branches. An owner or admin can add the
identity first; a step-level display-name override can still use an existing
profile.sendingWindow.
Fix the content of a paused campaign
If a campaign is already sending with a mistake in it, such as a wrong link, you don’t have to cancel it and rebuild the audience. Pause it, update the content here, then resume it. Apaused campaign accepts only the content fields: subject, previewText (or preheaderText), html, blocks and emailPreset. Any other field returns 400 and nothing is saved, because the audience, sender, pacing and attachments belong to the send already under way.
When you resume, recipients who have not been sent the campaign yet get the updated email. Emails already sent do not change, and nobody receives the campaign twice. The campaign stays paused until you resume it.
Translations are sent as they are saved. If the email has translations, the response includes a warnings entry naming their languages: update each translation before you resume, or recipients in those languages get the earlier content.
A paused campaign with an A/B test cannot be edited: its variants carry the content. If the campaign is resumed while your update is in flight, the update returns 409 and saves nothing, so a 200 always means the next resume sends your fix. A campaign in sending, scheduled, sent or any other status still returns 400.
Request
Campaign tracking code available to UTM templates as
{{campaign.trackingCode}}. Send an empty string or null to clear it.Updated Sequenzy email blocks. Use this instead of
html when you need
editor-compatible content or conditional blocks. Do not send both html and
blocks in the same request. Put block styling under styles; top-level
style keys like backgroundColor, backgroundOpacity, textColor,
textAlign, borderColor, borderWidth, and borderRadius are normalized
into styles.Change Style > Format to
branded or minimal without rewriting the
campaign copy. Supported for native Sequenzy blocks, including supported
custom HTML blocks, but not a standalone raw HTML email; do not combine it
with html. Applying minimal removes standalone logo blocks. Switching back
to branded generates a new logo unless you send the authored logo block
again in blocks.Replacement campaign audience, using the same shapes as
create. Send
null to clear saved
targeting and pick the audience when you schedule. Omit it to leave the saved
audience unchanged. Mutually exclusive with segmentId and listIds.Shorthand for retargeting the draft at one saved segment, equivalent to
{"type": "segment", "segmentId": "seg_123"}. Mutually exclusive with
targetLists and listIds.Shorthand for retargeting the draft at one or more lists, equivalent to
{"type": "lists", "listIds": ["list_123"]}. Mutually exclusive with
targetLists and segmentId.Deliver each recipient at their predicted best open hour within
sendTimeWindowHours of scheduledAt. Campaign-only: there is no company or
sequence STO toggle. Sequences use sendingWindow instead. Persists on the
draft until schedule overrides it. spreadOverHours and
sendInRecipientTimezone each turn STO off.STO delivery window in hours from
scheduledAt (1-24, default 12). Only used
when sendTimeOptimization is true.Send to at most this many audience members (1-10,000,000). The first N
matching subscribers, ordered by subscriber id, receive the campaign after
every audience and suppression rule is applied. Persists on the draft until
Schedule Campaign overrides it. Send
null to remove the limit. Out-of-range values return 400.Replacement label names. Send an empty array to clear labels. Missing labels
are created automatically. The API also accepts
label as a compatibility
alias.Display name for the Reply-To address. Requires
replyTo; omit it when you
send replyProfileId, which already carries its own display name. An address
carries one Reply-To name company-wide: if replyTo already has a saved
profile under a different name, that saved name is kept and the response
warnings array says so.Reply profile ID for this company. It already supplies both the Reply-To
address and the display name, so send it on its own and omit
replyTo and
replyToName.From address for this campaign. Its domain must be configured and verified.
Use this or
senderProfileId, not both.Display name recipients see, e.g.
Brennon at TradeTally. Selects the sender
identity of that name on fromEmail, creating it when the address has no
identity by that name; the mailbox’s other display names, and everything
pinned to them, are untouched. Requires fromEmail; omit it when you send
senderProfileId, which already carries its own display name.Existing sender profile ID. It already supplies both the From address and the
display name, so send it on its own and omit
fromEmail and fromName.Up to 10 addresses CC’d on every recipient’s email for this campaign. Send an
empty array or null to clear them. The recipient themselves is never copied.
Up to 10 addresses BCC’d on every recipient’s email for this campaign. Send an
empty array or null to clear them.
Replaces the files sent with every recipient’s email. Takes the same items as
create:
filename plus Base64 content or
a public path, up to 10 files and 5MB in total. Send an empty array or
null to remove every attachment; omit it to keep the current files. Base64
content is stored only after the rest of the request is validated; if storing
fails, the response is 503 and the campaign is unchanged.Campaign-scoped JSON data. For example, upload an
events array that this
campaign can use while rendering repeat blocks. Supports up to 500 items per
top-level array. Send null to clear it; omit it to keep the current data.Personalized list definitions that select items from
campaignData using
subscriber attributes. Templates can repeat over each list’s key; keys use
letters, numbers, underscores, and dots only. Use maxItems to cap how many
items each subscriber can receive in that list.Responses
targetLists.includedSubscriberIds override exclusions. To remove a contact from a frozen group, remove its ID from that array.