update_website
Update an existing published website with new HTML content. Requires authentication via edit_key (from the original publish response) or api_key (from the user's dashboard after claiming the site). The html field replaces the entire page — this is a full replacement, not a patch. You can also update assets. Use this when a user asks you to modify, edit, or change a site you previously published. IMPORTANT: You must provide either edit_key or api_key for authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Complete HTML document to replace the existing page with. Must be a valid, self-contained page. This replaces the entire page content. | |
| slug | Yes | The slug of the site to update (e.g. "hello-world-k3m"). | |
| title | No | Optional new title for the page. | |
| assets | No | Optional map of filename to content. If provided, replaces ALL existing assets. Omit to keep existing assets unchanged. | |
| api_key | No | The user's API key from their dashboard (e.g. "yt_abc123..."). Use this if the user has claimed the site and provided their API key. | |
| edit_key | No | The edit key returned when the site was originally published (e.g. "ek_9c4d2e7f..."). Use this if you still have it from the publish response. |