share_collective
Creates a public link for sharing a Nextcloud collective or a single page with its subpages, with options for read-only or editable access and password protection.
Instructions
Create a public link to a collective, or to one page and its subpages. Anyone with the link can read.
Needs share rights in the collective. Sharing a page without subpages turns it into a folder page (its file becomes /Readme.md, the page ID stays), and sharing the landing page shares the whole collective. Deleting the collective's link leaves page links in place.
Args: collective_id: The numeric collective ID. page_id: A page to share on its own (default 0 = the whole collective). editable: Let people with the link edit too (default false). This needs your edit rights and is ignored when the collective does not let regular members edit; if it fails, the link exists read-only. password: Optional password the link asks for.
Returns: JSON with the share, including its url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | No | ||
| editable | No | ||
| password | No | ||
| collective_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |