Update a draft campaign
Requires EDITOR. Only draft-status campaigns are editable (else 409).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Tenant project id (row-level isolation on every query).
Campaign id.
Request Bodyrequired
Section titled “Request Bodyrequired”Partial update of a draft campaign (all fields optional).
object
Segment predicate shared by campaigns and trigger userFilter (all fields optional).
object
object
Responses
Section titled “Responses”Updated campaign.
object
Email campaign (serialized). See handler for the full field set.
object
Segment predicate shared by campaigns and trigger userFilter (all fields optional).
object
Validation error, or identity/channel mismatch.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Not authenticated (no valid session/principal).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Authenticated but lacks the required project role.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Resource not found (or belongs to another project — indistinguishable).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Campaign is not in draft status.
Conflict envelope including the campaign’s current status.
object
Examplegenerated
{ "error": "example", "status": "example"}