Delete an email draft
DELETE /email_drafts/{uuid}
/email_drafts/{uuid}Permanently deletes a draft of the user and its attachments. There is no undo.
When to use: Only when the user explicitly asks to delete this draft.
When not to use: To stop an email that was already sent or scheduled, use cancel_email_send. To change the draft, use update_email_draft. Sending a draft with send_email already deletes it.
Side effects: Deletes the draft and its uploaded attachments; their size stops counting against the CRM Files storage. Nobody is notified. Deleting a draft that does not exist, or is not the user's, does nothing and still answers 204.
Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. Drafts are private: only their author can read or change them.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the draft.
uuidResponse Body
application/problem+json
application/problem+json
application/problem+json
curl -X DELETE "https://api.easymailing.com/email_drafts/3a9e1f53-0000-4000-8000-6c474d08b1a4" \ -H "X-Auth-Token: YOUR_API_KEY"