Skip to main content
PUT
Update a campaign by ID. Only campaigns with status "draft" can be updated.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

Body

application/json
name
string
agent_id
integer | null

ID of WhatsApp agent to use for creating the campaign.

template_name
any

Name of template to send.

template_language
any

Language of template to send.

Example:

"de"

template_components
object[]

Array of objects describing how to fill variables within the specified template. If there are no variables, set this to an empty array. Format is defined by WhatsApp. See components under https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates

recipients
object[]
start_at
string<date-time>

When to start the campaign in UTC. Only relevant when status is "in_progress". When messaging limit is hit for agent, campaign will pause automatically and resume the next day at the same time.

Example:

"2023-01-01T12:00:00Z"

send_from
string

Together with send_until: time window to send the campaign. Can be used such that customers do not receive messages in the middle of the night.

Example:

"00:00:00"

send_until
string

See send_from.

Example:

"23:59:59"

assign_bot_id
integer | null

Optional ID of bot which will be assigned to the conversation. Existing running bot will be stopped and a new one will be started.

assign_user_id
integer | null

Optional ID of user the conversation will be assigned to.

assign_folder_id
integer | null

Optional ID of folder the conversation will be assigned to.

Response

200 - application/json

Success

data
object

WhatsApp campaign (marketing).