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

NameTypeDescription
campaignIdstringRequired. Campaign id.

Body Parameters

NameTypeDescription
subjectstringSubject line.
namestringInternal name.
previewstring or nullPreview / preheader text.
contentunknownCampaign body.
contentType"MAILY" / "PLATE" / "MARKDOWN"Editor format.
senderIdstringSending identity id.
replyTostring or nullReply-To address.

Response Fields

All body fields are optional (Partial<CreateCampaignParams>).

FieldTypeDescription
idstringCampaign id.
namestringInternal name.
subjectstringSubject line.
previewstring or nullPreview text.
statusCampaignStatusCurrent status.
contentTypeContentTypeEditor format.
senderIdstringSending identity id.
replyTostring or nullReply-To address.
updatedFieldsstring[]Fields that changed.
warningsstring[]Optional non-fatal notes.

data is the patched campaign. Failures return { data: null, error: { name, message, statusCode } }.