NextCloud Folder icon

NextCloud Folder

Manage files, folders and shares on Nextcloud (WebDAV)

Actions12

Share → Create

AI-generated

Summary

Create a new share for a specified file or folder in Nextcloud, optionally as a public link or shared with a specific user or group, with configurable permissions, password protection, and expiration date.

Inputs

  • Path (required) — Path of the file or folder to share, e.g., /Documents/report.xlsx
  • Share Type (required) — Type of share to create: Public Link, User, or Group. Defaults to Public Link.
  • Share With — Username or group name to share with; required if Share Type is User or Group.
  • Permissions (required) — Permissions to grant on the share. Options include Read Only (1), Read + Update (3), Read + Create (5), Read + Update + Create (7), or All (31). Defaults to Read Only.
  • Password — Optional password to protect the share.
  • Expiry Date — Optional expiration date for the share in YYYY-MM-DD format.

Output shape

a list with a single item containing the created share's details as returned by the Nextcloud OCS Share API.

The output includes the full share metadata from the Nextcloud API response in JSON format. If the operation fails for any input item, an error is thrown unless 'Continue On Fail' is enabled, in which case the error message is returned in the output item.

Links

Discussion