Skip to main content
PUT
Update a campaign

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Path Parameters

uuid
string<uuid>
required

UUID of the campaign to update

Body

application/json
name
string
Example:

"Updated Summer Promotion 2025"

description
string | null
Example:

"Updated campaign description"

status
enum<string>
Available options:
Active,
Draft,
Completed,
Archived
Example:

"Active"

campaign_type
string | null
Example:

"email"

start_date
string<date-time> | null
Example:

"2025-06-01T00:00:00Z"

end_date
string<date-time> | null
Example:

"2025-08-31T23:59:59Z"

rules
object | null
Example:
agent_uuid
string<uuid> | null

Agent UUID. The channel binding (agent_app) is resolved automatically: when campaign_type is given, the agent's channel matching that type is used.

Example:

"550e8400-e29b-41d4-a716-446655440000"

contact_template_setting_uuid
string<uuid> | null

For campaign_type='text' (WhatsApp): UUID of an active template setting (create via POST /api/v1/whatsapp/template-settings). A text campaign cannot publish without one.

Response

Success

success
boolean

Indicates whether the request completed successfully. True for successful responses; false for documented error responses.

Example:

true

message
string

Human-readable response message. Safe to display in logs or simple client notifications; use structured fields for program logic.

Example:

"Campaign updated successfully"

data
object