Email batches
Cancel a batch of emails
PUT /email_batches/{uuid}/actions/cancel
PUT
/email_batches/{uuid}/actions/cancelCancels every email of the batch that is still queued, at once. The ones that already left stay as they are.
When to use: When the user wants to stop a batch in progress.
When not to use: To stop a single email of the batch, use cancel_email_send with its UUID.
Side effects: Cancelled emails are never sent and their stored body is deleted.
Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. Only the author can do it.
X-Auth-Token<token>
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
uuid*string
UUID of the batch.
Format
uuidResponse Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/email_batches/3a9e1f55-0000-4000-8000-6c474d08b1a6/actions/cancel" \ -H "X-Auth-Token: YOUR_API_KEY"{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "release_at": "2019-08-24T14:15:22Z", "cancellable": true, "sends": [ {} ]}