Skip to content

Documentation

Cancel an upload

DELETE/v1/drops/uploads/{id}Drops

Deletes the parts sent so far and gives the day's file and the storage back. A finished upload's file stays: delete its link instead.

Parameters

ParameterTypeRequiredDescription
idstring, in the pathrequiredThe upload's id.

Example request

curl -s -X DELETE "https://snip.link/v1/drops/uploads/id" \
  -H "Authorization: Bearer $SNIP_KEY"

Example response

{
  "deleted": true
}

Response fields

FieldTypeDescription
deletedtrue

Errors

StatusMeaning
401The API key is missing, malformed or revoked.
404No link by that id or ending in this account.
409The ending is taken or reserved. Pick another.
429Either the key exceeded its requests-per-second limit (honor Retry-After), or a daily or plan quota is used up (details.reason).

Back to getting started