Update an email campaign
PUT/api/partner-gateway/campaigns/email/:id
Changes the fields you send; the others keep their value.
- When: while the campaign is a draft (
CREATED), after its content checks failed (REJECTED,QUARANTINE), or once confirmed (PRE_BILLED) while itsscheduledDateis still outside the platform's edit window. - Back to draft: every update sets the status to
CREATED. A confirmed campaign gets its reserved credit back and must be confirmed again. - Sender and lists are checked as on creation.
Request
Responses
- 200
- 400
- 401
- 404
The updated campaign, back in status CREATED.
The body is not valid, the campaign's status can't be changed, or its scheduledDate is inside the edit window.
The API key is missing or invalid, or holds neither CAMPAIGNS nor EMAIL.
The campaign, the sender, a contact list, the template or an attachment is not found in your account.