Make a fmrl.site page public or private
fmrl_set_visibilitySets whether a page is publicly readable by anyone with the link or private to key holders; public changes require preview and confirmation, private changes re-encrypt and return a new link.
Instructions
Change who can read a page this key owns, keeping its id; to change its content use fmrl_edit. Going public takes two calls: the first answers a preview and changes nothing, so show it to the person and call again with confirm: true and the preview's rev only after they say yes. Content that carries a key or token is refused. Going private encrypts the page here under a new key and answers its new link (after #p=); the server deletes the page's earlier public versions, title and preview, so only do it when the person asked. A kept page can't change either way.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A page id or page URL; a private page going public needs its key (#p=) in the link, or one this machine already holds. | |
| rev | No | With confirm: true, the revision number the preview answered. If the page has changed since, nothing is made public. | |
| confirm | No | true: make a private page public now, after the person said yes to its preview. Leave out the first time; going private needs no confirm. | |
| visibility | Yes | Who can read the page after the change: public (anyone with the link) or private (only links that carry the new key). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| rev | No | ||
| url | Yes | ||
| title | No | ||
| changed | Yes | ||
| preview | No | ||
| visibility | Yes | ||
| content_format | No |