Remove a fixed email attachment
DELETE
/v1/tenants/me/settings/email-attachments/{attachmentId}
const url = 'https://api.emite.cr/v1/tenants/me/settings/email-attachments/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.emite.cr/v1/tenants/me/settings/email-attachments/example \ --header 'Authorization: Bearer <token>'Deletes the file for good: invoice emails sent from then on no longer carry it. Unlike adding or toggling one, removing is not gated by the plan (Feature.EMAIL_ATTACHMENTS), so a company that no longer has the feature can still delete what it uploaded. 404 for an attachment that is not the company's. Requires settings:write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”attachmentId
required
string
Attachment UUID
Responses
Section titled “Responses”Attachment removed.
Missing or invalid JWT / API key.
Attachment not found.