Skip to main content
PATCH
Update campaign

Authorizations

Authorization
string
header
required

Authorization: Bearer sk_live_xxxxx

Path Parameters

campaignId
string
required

Body

application/json
name
string
Maximum string length: 128
templateId
string

Trocar o template da campanha (não use null para remover; a campanha sempre exige template).

Minimum string length: 1
channels
enum<string>[]

Campaign channel (create/update): whatsapp, sms, email, telegram. Must be a subset of channels enabled on the template. Templates may enable RCS/Push/voice; campaign create via API/dashboard uses these four.

Available options:
whatsapp,
sms,
email,
telegram
segmentId
string | null
audienceContactIds
string[] | null
scheduledFor
string<date-time> | null
instanceId
string | null

Instância WhatsApp

telegramInstanceId
string | null

Instância Telegram

fromEmail
string | null
variables
object | null

Response

Atualizada.

success
boolean
data
object

Multichannel campaign. channels ⊆ template enabled channels (whatsapp|sms|email|telegram). Status: DRAFT, SCHEDULED, RUNNING, COMPLETED, FAILED, CANCELLED.