Campaigns
Update Campaign
Update an existing campaign.
POST
Update campaign
Use this endpoint to update an existing campaign.
This means: status == “active”
Example — multiple conditions with AND (same group):
This means: status == “active” AND region == “US”
Example — two groups with OR:
This means: (status == “active” AND region == “US”) OR (priority == “high”)
To clear conditions, send
Endpoint
POST/update-campaign
Content-Type: application/json
Authentication: Required (workspace auth)
Request Body
To update a campaign, send itsid and any fields you want to change.
Notes
idis required — it identifies the campaign to update.- Only the fields you send are updated.
campaign_statusaccepts a string value:draft,inprogress,hold, orpause.max_delaymust be passed as a JSON string with keysd(days),h(hours), andm(minutes) as numbers.start_dateandend_datemust be inYYYY-MM-DDformat (e.g.,"2025-12-05").max_retrycannot be greater than 50.
Conditions Format
Theconditions field accepts an array of groups. Each group contains rules that are evaluated together.
Structure:
Each rule:
Allowed operators:
Logic:
- Rules within the same group are joined with AND.
- Groups are joined with each other using the
joinfield ("OR"or"AND").
"conditions": null.
Example cURL
Body
application/json
Response
Campaign updated successfully

