create-share
Generates a share link for a NextCloud file or directory with configurable permissions, password protection, and expiration.
Instructions
Create a share link for a file or directory
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path of the file or directory to share | |
| shareType | No | Share type (0=user, 1=group, 3=public link, 4=email) | |
| shareWith | No | Username, group name, or email to share with (not needed for public links) | |
| permissions | No | Permissions for the share (1=read, 2=update, 4=create, 8=delete, 16=share) | |
| password | No | Password protection for the share | |
| expireDate | No | Expiration date (YYYY-MM-DD) | |
| note | No | Note for the share |