Campaigns
Update a draft campaign
Update a draft campaign's name, labels, content, audience, From/Reply-To settings, or campaign personalization data. Direct addresses create profiles when needed.
put/campaigns/{campaignId}
Path parameters
campaignIdstring required
Campaign ID
Request body
Example request
{
"name": "April Launch",
"subject": "A quick update",
"previewText": "A short preview for the inbox",
"preheaderText": "A short preview for the inbox",
"html": "<p>Hello there!</p>",
"replyTo": "support@example.com",
"replyProfileId": "reply_abc123",
"ccEmails": [
"ops@example.com"
],
"bccEmails": [
"archive@example.com"
],
"labels": [
"edm",
"api"
],
"label": [
"edm",
"api"
],
"campaignData": {
"events": [
{
"id": "evt_123",
"title": "Romeo and Juliet",
"region": "Auckland",
"genre": "theatre",
"url": "https://example.com/events/evt_123"
}
]
},
"computedLists": [
{
"key": "recommendedEvents",
"source": "events",
"maxItems": 6,
"rules": [
{
"itemField": "region",
"operator": "equals",
"subscriberField": "region"
},
{
"itemField": "genre",
"operator": "in",
"subscriberField": "interests"
}
]
}
]
}Response
Campaign updated successfully
Example response
{
"success": true,
"campaign": {
"id": "camp_abc123",
"name": "April Launch",
"subject": "A quick update",
"status": "draft",
"labels": [
"edm",
"api"
],
"replyProfileId": "reply_abc123",
"replyToName": "Support",
"replyToEmail": "support@example.com",
"ccEmails": [
"ops@example.com"
],
"bccEmails": [
"archive@example.com"
],
"url": "https://sequenzy.com/dashboard/company/comp_abc123/campaign/camp_abc123",
"previewUrl": "https://sequenzy.com/dashboard/company/comp_abc123/campaign/camp_abc123?step=review"
},
"warnings": [
"blocks[0].styles.color is not a supported field and was ignored. Button label color comes from the block-level `buttonTextColor` field. Supported styles fields: backgroundColor, backgroundOpacity, bleed, borderColor, borderRadius, borderWidth, paddingBottom, paddingLeft, paddingRight, paddingTop, textAlign, textColor."
]
}