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
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication. |
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| uploadId | string | Yes | The id POST /uploads returned. |
Response
204 No Content, with no body. Aborting an upload that is already gone also returns 204.
| Code | Meaning |
|---|---|
| 404 | The 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. |
| 503 | Storage is unavailable, so the upload cannot be aborted. Retry later. |