Documentation
Send one part
PUT
/v1/drops/uploads/{id}/parts/{n}DropsSend part n (from 1) as the request body with its Content-Length: part_bytes bytes, the last part the rest of the file. Sending a part again replaces it.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string, in the path | required | The upload's id. |
n | string, in the path | required | The part's number, from 1. |
Example request
curl -s -X PUT "https://snip.link/v1/drops/uploads/id/parts/n" \ -H "Authorization: Bearer $SNIP_KEY"
Response fields
| Field | Type | Description |
|---|---|---|
n | integer | |
bytes | integer |
Errors
| Status | Meaning |
|---|---|
| 400 | The body or query is invalid. details names each field. |
| 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). |