Fully update a site
htmlkin_updateUpdates a previously published site by its ID: replaces the content (html_content or files — at most one) and/or changes the PIN and visibility. An update always replaces the whole site: html_content turns a multi-file site into a single-file one. The site URL stays the same. Pass only pin and/or visibility to change just the protection or visibility.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"page_id": "<page_id>"
},
"name": "htmlkin_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | 4 digits — set or change the PIN; an empty string removes the PIN. | |
| files | No | New full set of the site's text files; up to 20 files / 2 MB. | |
| page_id | Yes | Site ID (the id field from the htmlkin_publish response). | |
| comments | No | Who can comment on selected text on the site: off — nobody; everyone — anyone signed in to htmlkin; team — the owner and the team, on the Business plan. | |
| visibility | No | Who can open the site: public — anyone, search engines index it; link — anyone with the link, not indexed; team — the account's team members after signing in, on the Business plan; private — only the account owner after signing in. | |
| html_content | No | New HTML document. Optional; not together with files. |