Update Email Campaign
PATCH/emails/public/v2/locations/:locationId/campaigns/:campaignId
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Update an email campaign draft
Request
API Version
2023-02-21Location ID
Campaign ID
- application/json
- Body
- Example (auto)
Bodyrequired
Campaign name
Editor content to update. Required only when updating campaign content, and must be provided together with editorType. Provide HTML or plain-text string content.
Editor type for campaign content. Required only when updating campaign content, and must be provided together with editorContent.
htmltextID of the user performing this action
{
"name": "Untitled campaign name",
"editorContent": "<html><body>Hello World</body></html>",
"editorType": "html",
"userId": "507f1f77bcf86cd799439011"
}
Success
- application/json
- Schema
- Example (auto)
Schema
Campaign ID
Source of the campaign
Source ID of the campaign
Campaign name
Campaign status
allsentfailedarchiveddraftprocessingscheduledcancelledpausedCampaign type
Campaign category
AB test variation identifiers (available only for AB test campaigns)
Whether the campaign is deleted
Created at timestamp
Last updated timestamp
Trace ID of request
{
"id": "67f15c2ae99226d5bcccb8f3",
"source": "email-campaign",
"sourceId": "bulkRequest_abc123",
"name": "February Newsletter",
"status": "sent",
"campaignType": "bulk-email",
"campaignCategory": "email-campaign",
"variations": [
{
"sourceId": "9MhVcU7dTdLI7XOU1Vdt",
"isWinner": true
}
],
"deleted": false,
"createdAt": "2025-07-24T11:55:43.598Z",
"updatedAt": "2026-02-09T04:49:12.322Z",
"traceId": "019e4ef5-a65e-4198-8cf9-8e93dca9bda4"
}