Update a campaign or transition its status (pause/resume/cancel).
PATCH/api/v1/campaigns/:id
Mutable fields depend on status. draft|scheduled: name, message_template, message_variations, scheduled_for, batch_size, batch_delay_minutes, status->sending|cancelled. sending: only status->paused|cancelled. paused: only status->sending|cancelled. completed|cancelled|failed: immutable (409). Scope: send_sms.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
Campaign updated; returns the same shape as GET /v1/campaigns/{id}.
Missing or invalid parameters
Invalid or missing API key
API key lacks the required scope for this endpoint
Resource not found or belongs to another account
Status transition invalid or campaign is in a terminal state.