Campaigns
Update a campaign
Partial update: an omitted field is left untouched. Only DRAFT and SCHEDULED campaigns are editable — editing one that is already sending would change what half its recipients receive, so it answers 400.
Changing from re-verifies the sender domain. Changing the audience on a DRAFT campaign schedules a recipient recount, so stats.total_recipients converges shortly after the response.
A new audience_condition is checked as it is on create: an unsupported field or operator answers 400, and a list is targeted with audience_type: "LIST" and list_id, never a filter.
Requires the campaigns:write scope — Create, edit, and organize your campaigns.
patch/api/v1/campaigns/{id}
Request
- Base URL: https://api.sendly.now
- URL: https://api.sendly.now/api/v1/campaigns/{id}
- Auth: one of:
- HTTP bearer
- API key in cookie better-auth.session_token
- OAuth 2 (authorization code, authorization URL https://app.sendly.now/api/auth/oauth2/authorize, token URL https://app.sendly.now/api/auth/oauth2/token, scopes: campaigns:write)
Path parameters
idstring uuid required
Resource id.
Request body
Response
The updated campaign
Changes
No recorded changes to this operation across all 1 revision of this API.