Remove an attachment

Preview
deletehttps://api.expiryedge.com/v2/expiries/{id}/attachments
editor 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.

Path parameters

  • idstringrequired

Query parameters

  • urlstring
    The attachment's url from the list.
  • indexinteger
    The attachment's index; used only when url is not given.
    min: 0

Returns

204
Removed.

Errors

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.