Remove an attachment

Vorschau
deletehttps://api.expiryedge.com/v2/expiries/{id}/attachments
editor or admin60/min
Anfrage
curl -X DELETE 'https://api.expiryedge.com/v2/expiries/exp_4Tq9sLm2/attachments' \
  -H "Authorization: Bearer $EXPIRYEDGE_API_KEY"
Antwort
Kein Antwort-Body.

Identify the file by url (recommended) or index. The stored file is deleted and its size given back to the storage quota.

Pfadparameter

  • idstringerforderlich

Query-Parameter

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

Rückgabe

204
Removed.

Fehler

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.