Easymailing
Email sends

Discard a failed email

PUT /email_sends/{uuid}/actions/discard

PUT/email_sends/{uuid}/actions/discard

Hides a failed or unconfirmed send from the user's failed list and deletes its stored content (text and attachments). The email is not sent.

When to use: When the user does not want to retry a failed email and asks to dismiss it.

When not to use: To send it again, use retry_email_send. To edit and resend it, use reopen_email_send. To stop a queued email, use cancel_email_send.

Side effects: Deletes the stored content of the failed email; it cannot be retried or reopened afterwards. Nothing is sent.

Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. Only the author of the send can do it.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the send.

Formatuuid

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/email_sends/3a9e1f54-0000-4000-8000-6c474d08b1a5/actions/discard" \  -H "X-Auth-Token: YOUR_API_KEY"
{  "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",  "state": "queued",  "failure_reason": "rejected",  "release_at": "2019-08-24T14:15:22Z",  "scheduled_at": "2019-08-24T14:15:22Z",  "sender_uuid": "6fd60e87-ecde-4069-8fdb-aebbacafea6d",  "sender_address": "user@example.com",  "contact": "/entity/1",  "record": "/entity/1",  "record_type": "contact",  "record_name": "string",  "mode": "compose",  "subject": "string",  "to": [    "string"  ],  "cc": [    "string"  ],  "bcc": [    "string"  ],  "recipients": [    {}  ],  "batch": "/entity/1",  "created_at": "2019-08-24T14:15:22Z",  "sent_at": "2019-08-24T14:15:22Z",  "failed_at": "2019-08-24T14:15:22Z",  "canceled_at": "2019-08-24T14:15:22Z",  "cancellable": true,  "retryable": true,  "copy_visible": true}