Email sends
Cancel all pending emails
PUT /email_sends/actions/cancel_all
PUT
/email_sends/actions/cancel_allCancels every email of the user that has not started to leave: queued, scheduled and the pending ones of batches. Emails already leaving or sent are untouched.
When to use: Only when the user explicitly asks to stop everything that is waiting to go out.
When not to use: To stop one email, use cancel_email_send; one batch, cancel_email_batch.
Side effects: Every cancelled email is never sent and its stored body is deleted. Pending-send notifications are withdrawn.
Permissions: Requires a CRM seat and the crm.contacts_companies.write capability.
X-Auth-Token<token>
Value for the X-Auth-Token header parameter.
In: header
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/email_sends/actions/cancel_all" \ -H "X-Auth-Token: YOUR_API_KEY"{ "canceled": 0}