Create a share
POST/api/v1/shares
Shares a file or folder and returns the new shareId. path is relative to the storage named by exactly one of ownerUserId or ownerGroupfolder.
Without a receiver the share is a public link and name is required; with receiverUserId, receiverEmail or receiverGroup only that receiver may open it (an email share works for anyone with the link). A user or email receiver is notified by email, and the share is logged as shared activity. Sharing the same path with the same receiver again returns the existing share's id unchanged. Shares are writable unless readonly is set; password only applies to public links and is ignored otherwise. name is stored for a public link or an email share and ignored for a user or group share. path is not checked to exist.
ownerUserId must be the caller. Responses also include ownerUsername and receiverUsername as display names. For ownerGroupfolder the caller must be an owner or editor of that group folder.
Request
Responses
- 200
- 400
- 403
Id of the new or reused share.
Request failed.
Request failed.