DELETE
/v1/me/mail/drafts/{id}/attachments/{id}The first id is the draft, such as msg_q9w3k7x2n8m4t6vb, and the second the
file, such as att_n6q2w8k4t9x3m7hr, as
adding one or opening the draft listed
it. Only off a draft: once a message has been sent, what went with it is a
record of what was sent.
Request
curl -X DELETE https://api.proppertrading.com/v1/me/mail/drafts/msg_q9w3k7x2n8m4t6vb/attachments/att_n6q2w8k4t9x3m7hr \
-H "Authorization: Bearer ptat_9f2c1a44_3b8e7d2f5c9a1b4e6d8f0a2c4e6b8d1f"
Response
204, no body.
Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | not_a_draft | The message is not a draft, or not any more |
| 403 | insufficient_scope | This device does not hold mail:write |
| 404 | resource_not_found | No such draft in a mailbox you can read, or no such file on it. A number for either finds nothing |