Update a published page in place
update_pageChange a page you already published, keeping the SAME private link. Use this whenever the user wants to update, edit, revise, fix, re-publish, rename, re-file, password-protect, or change the expiry of a page you previously created — do NOT call create_page for any of that, which would mint a new throwaway link. Identify the page with page (its viewer URL or slug, e.g. from create_page or list_pages). Every change field is optional and independent: pass only what you want to change, and anything you omit is left exactly as-is. You must pass at least one of html, title, password, expiry, or project. html swaps the content as a new version (the previous version stays in the 30-day history). password sets a viewer password, or pass an empty string "" to REMOVE the password — note a searchable page can't take a password. expiry is one of '1d' | '7d' | '30d' | 'never' ('never' pins the page always-on; the Free tier is limited to '7d' or 'never', and on Free '7d' only takes a page off always-on, where it resumes the countdown it had when it was pinned — it never extends a page that is already counting down or revives an expired one). title renames it; project re-files it under a project by name (created if it doesn't exist). SIZE LIMIT: the html argument travels as text (roughly under ~100 KB). For a larger content swap, don't use this tool: if you can run shell commands, call prepare_upload with page set to this page, curl the file, then finish_upload — that replaces the content and keeps the SAME link; otherwise tell the user to re-upload with the miinideck CLI or the web uploader.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Optional. The complete, self-contained HTML document (including <!doctype html>) to publish as the new version. Omit to leave the content unchanged. | |
| page | Yes | The page's viewer URL or its slug (the part after the last '/'). | |
| title | No | Optional new title shown in the owner's dashboard. Pass an empty string to clear it. Omit to leave unchanged. | |
| expiry | No | Optional new expiry. 'never' pins the page always-on. Free tier may only pick '7d' or 'never'; on Free, '7d' can't extend a page that is already counting down. Omit to leave unchanged. | |
| project | No | Optional project (folder) to move this page under, BY NAME. Matches an existing project case-insensitively, or creates a new one. Omit to leave unchanged. | |
| password | No | Optional. Set a viewer password, or pass an empty string "" to remove an existing one. Rejected if the page is searchable. Omit to leave unchanged. |