Update campaign
Edit campaign details, its agent task prompts and its canonical schedule in one transaction. Send expectedRevision and expectedScheduleRevision from the editor to reject stale changes with 409. Omitted fields are preserved. Saving schedule configuration consolidates a legacy campaign only when it has at most one schedule; reconcile multiple legacy schedules explicitly first. Existing per-run protections are preserved. Activation validates agents, prompts, connected destinations and a daily budget.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.
Campaign id (UUID), as returned by the list/create campaigns endpoints.
Body
Optional changed account limits to save atomically with this configuration. Accounts must be distinct selected destinations of this workspace. A nonempty array additionally requires manage_integrations. Any invalid, stale or unsafe reduction rejects every change. Omit or send [] to leave all shared limits unchanged.
1000Send 2 to explicitly convert after reviewing configuration changes. Conversion requires the complete agent and schedule configuration; version 2 cannot revert to legacy behaviour.
1, 2 a non-negative number
x >= 0Revision of the canonical schedule shown by the editor, protecting independently cached schedule reads.
x >= 0an array of at most 50 item(s)
50Replace the campaign’s shared timing and limits atomically with its other edits. Omit to preserve the current schedule and budgets. Include the displayed campaign and schedule revisions to reject stale edits.
Campaign name, 1-120 characters, unique within the team.
1 - 120Legacy optional description retained for API compatibility. Campaign setup uses the campaign name only.
2000Response
Success
a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Campaign name, 1-120 characters, unique within the team.
1 - 120Legacy optional description retained for API compatibility. Campaign setup uses the campaign name only.
2000Managed agents in the campaign (the optimiser pool).
The canonical optimised schedule for a managed campaign. Legacy campaigns may have multiple attachments until explicitly reconciled.
a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a non-negative number
x >= 0Version 1 preserves legacy scheduling and optimiser behaviour. Version 2 uses explicit account bundles, shared posting caps and automatic exploration.
1, 2