Remove a file from a draft

.md

Take a file back off a draft before it goes anywhere.

Scopesmail:write
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

StatusCodeMeaning
400not_a_draftThe message is not a draft, or not any more
403insufficient_scopeThis device does not hold mail:write
404resource_not_foundNo such draft in a mailbox you can read, or no such file on it. A number for either finds nothing