Documentation
Cancel an upload
DELETE
/v1/drops/uploads/{id}DropsDeletes 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
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string, in the path | required | The 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
| Field | Type | Description |
|---|---|---|
deleted | true |
Errors
| Status | Meaning |
|---|---|
| 401 | The API key is missing, malformed or revoked. |
| 404 | No link by that id or ending in this account. |
| 409 | The ending is taken or reserved. Pick another. |
| 429 | Either the key exceeded its requests-per-second limit (honor Retry-After), or a daily or plan quota is used up (details.reason). |