Abort an upload

Abort a multipart upload started with POST /uploads, discarding its uploaded parts. Use it when you stop partway through.

DELETE https://sitepaste.com/api/v1/public/uploads/{uploadId}

Requires the media scope.

Usage

curl -X DELETE "https://sitepaste.com/api/v1/public/uploads/Um8ZBMuFXwQYTp_yiuJT0Hnck8RDZAEzpog" \
  -H "Authorization: Bearer $TOKEN"

Authorizations

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication.

Path parameters

ParameterTypeRequiredDescription
uploadIdstringYesThe id POST /uploads returned.

Response

204 No Content, with no body. Aborting an upload that is already gone also returns 204.

CodeMeaning
404The id is not one this API issued, names an upload that does not belong to your workspace, or names a direct upload, which has no parts to discard.
503Storage is unavailable, so the upload cannot be aborted. Retry later.