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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "share_create"
}
}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 | |||