post
https://{server}/api/v2.1/via-repo-token/share-links/
Create a share link for a file, a folder or the whole library (path = /). Requires a token with rw permission.
- The link is created in the name of the user who generated the API token, and is limited by that user's permission on
path. - If
permissionsis omitted, the link allows preview and download.can_uploadis only possible for folders with read-write permission;can_editonly for editable files. - Links for encrypted libraries cannot be created.
- This endpoint does not support password protection or an expiration date.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
400path or permissions invalid, or share link limit of the library exceeded
403Permission denied (token without rw permission, encrypted library, or permission not sufficient for the requested link permissions)
404Library, file or folder not found