Set sharing permissions
set_visibilitySet visibility for exactly one proposal_id or folder_id. private means only the publisher (and signed-in workspace members) can open it — everyone else sees a blocked page; passcode requires a passcode (generated or retained when omitted); public allows anyone with the URL. Confirm external sharing with the user first. Changes take effect immediately. A shared folder grants access to its included live pages even when an item’s link is private. Excluded items and legacy link permissions remain separate. One stable URL per page; reset_default_link replaces it. Reading records identify devices, not named people. For a page, allow_copy turns copying with copy_proposal on or off (omit it to leave it unchanged). Pass home: true (and no proposal_id / folder_id) to set the workspace home page at https://.hy.24haowan.com/ — every workspace has one, members-only by default, owner only. The home page lists only pages and folders that are themselves public or passcode-protected, so opening it never exposes a private page. When a folder is opened, the result names pages that are private on their own but will be seen through the folder; pass that on to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| home | No | Set the visibility of the workspace home page. When true, do not pass proposal_id / folder_id | |
| passcode | No | Custom passcode: 4–16 letters or digits. Omit to generate or retain a passcode. | |
| folder_id | No | Change folder visibility, sharing all included pages through one link. Supply exactly one of folder_id or proposal_id. | |
| allow_copy | No | Pages only: whether people with the link may copy it into their own workspace with copy_proposal (omit to leave unchanged). | |
| visibility | Yes | ||
| proposal_id | No | Change one page’s visibility. Supply exactly one of proposal_id or folder_id. |