Documentation
Remove a link from a collection
DELETE
/v1/collections/{collection}/links/{link}CollectionsTakes one link out of the collection. The link itself stays as it is.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
collection | string, in the path | required | The collection's id. |
link | string, in the path | required | The link's id, ending, or domain/ending URL-encoded (go.example.com%2Fmenu). |
Example request
Terminal
curl "https://snip.link/v1/collections/3f6c2a9e-1b4d-4e8a-9c7f-2d5b8e1a0c64/links/spring-menu" \
-X DELETE \
-H "Authorization: Bearer $SNIP_KEY"Errors
| Status | Meaning |
|---|---|
| 401 | The API key is missing, malformed or revoked. |
| 404 | No collection by that id in this account. |
| 429 | Either the key exceeded its requests-per-second limit (honor Retry-After), or a daily or plan quota is used up (details.reason). |