share_create
Create file shares in Nextcloud via OCS API. Support user, group, and public link shares with configurable permissions, expiration, and notes.
Instructions
Create a share via OCS. Authenticated as the admin user. For user/group shares (type 0/1), provide share_with. expire_date format: YYYY-MM-DD.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| path | Yes | ||
| share_type | No | 0=user, 1=group, 3=public link | |
| share_with | No | ||
| expire_date | No | ||
| permissions | No | 1=read,2=update,4=create,8=delete,16=share (additive) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||