lumail.campaigns.update
SDK 2.1.0 · API v2 · PATCH /api/v2/campaigns/:campaignId
MethodPATCH
/api/v2/campaigns/:campaignId[email protected] · lumail.campaigns
campaigns.update(campaignId: string, params: UpdateCampaignParams): Promise<LumailResult<UpdateCampaignResponse>>Patch a draft. Locked on SCHEDULED, SENDING, SENT, and workflow campaigns.
Path Parameters
| Name | Type | Description |
|---|---|---|
campaignId | string | Required. Campaign id. |
Body Parameters
| Name | Type | Description |
|---|---|---|
subject | string | Subject line. |
name | string | Internal name. |
preview | string or null | Preview / preheader text. |
content | unknown | Campaign body. |
contentType | "MAILY" / "PLATE" / "MARKDOWN" | Editor format. |
senderId | string | Sending identity id. |
replyTo | string or null | Reply-To address. |
Response Fields
All body fields are optional (Partial<CreateCampaignParams>).
| Field | Type | Description |
|---|---|---|
id | string | Campaign id. |
name | string | Internal name. |
subject | string | Subject line. |
preview | string or null | Preview text. |
status | CampaignStatus | Current status. |
contentType | ContentType | Editor format. |
senderId | string | Sending identity id. |
replyTo | string or null | Reply-To address. |
updatedFields | string[] | Fields that changed. |
warnings | string[] | Optional non-fatal notes. |
data is the patched campaign. Failures return { data: null, error: { name, message, statusCode } }.