Update a draft
Requires scope: manage or draft. Edits a draft or scheduled draft. Setting a future send_at schedules it; clearing it returns to draft. A draft that starts sending while it is being changed answers 409 duplicate_resource. Without the send scope a key can neither schedule a draft nor change a scheduled one, except to unschedule it with send_at: null (403 insufficient_scope). A draft that failed only because its agent was paused or archived when it came due can be changed too: a new send_at schedules it again once a paused agent is resumed (422 agent_paused until then; 404 agent_archived for an archived agent, as archiving cannot be undone), and any other change makes it a draft again. A draft cannot carry attachments (422 invalid_field, param attachments). A test key cannot change a draft a live key made (403 live_mode_required).
Request
- Base URL: https://api.mails.ai
- URL: https://api.mails.ai/v1/drafts/{id}
- Auth: HTTP bearer
Path parameters
Draft id.
Request body
Response
The updated draft.
Changes
No recorded changes to this operation across all 1 revision of this API.