Change a published page’s settings
set_page_optionsChange a published page's visibility, search-engine indexing or password WITHOUT republishing it — the URL, view count and content all stay the same. Use this instead of deleting and publishing again, which changes the link the user already shared. Send only the fields you want to change. Turning a paid capability off never needs an entitlement; turning one on is checked against the current plan. A password always forces the page private, so asking for both public: true and a password is refused rather than silently resolved. dochost branding is NOT settable here: it is resolved from the account's live plan at render time, so there is nothing per-page to flip — read brandingHidden from get_page for the rendered answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| public | No | Discoverable on Explore. Cannot be true while a password is set. | |
| password | No | Set or replace the page password (paid plans). | |
| searchable | No | Opt in to search-engine indexing. Turning it on requires a permanent page. | |
| removePassword | No | Clear the password. Always allowed, on any plan. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| url | No | ||
| slug | Yes | ||
| public | No | ||
| changed | No | False when the page already had exactly these settings. | |
| searchable | No | ||
| hasPassword | No |