Remove an attachment
Previewdelete
https://api.expiryedge.com/v2/expiries/{id}/attachmentseditor or admin60/min
Request
curl -X DELETE 'https://api.expiryedge.com/v2/expiries/exp_4Tq9sLm2/attachments' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY"Response
No response body.
Identify the file by url (recommended) or index. The stored file is deleted and its size given back to
the storage quota.
idstringrequired
urlstringThe attachment'surlfrom the list.indexintegerThe attachment'sindex; used only whenurlis not given.min: 0
204
Removed.
400 | Invalid parameters or body ( VALIDATION_FAILED; details names the fields). |
401 | Missing, invalid or expired token ( UNAUTHORIZED). |
403 | Your role can't do this, or your account has no organization ( FORBIDDEN). |
404 | No such record in your organization (records in other organizations are also 404). |
405 | Wrong HTTP method for this path; the Allow header lists the valid ones. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
