Update a website draft
update_websiteSaves a new version of a private draft and returns a preview link for it. Files sent replace or add files, every other file of base_version_id is kept unless keep_unchanged_files is false, and remove_paths deletes files. A starter-layout draft takes the full business details instead of files. base_version_id must be the draft's latest version: if the draft changed since, nothing is saved and the latest version id is returned. Earlier versions are kept, and no published website changes.
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": {
"site_id": "<site_id>",
"base_version_id": "<base_version_id>"
},
"name": "update_website"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| files | No | Changed or new files. Files not sent are kept from base_version_id. | |
| site_id | Yes | The draft site_id. | |
| business | No | Details for Benchlight's one-page starter layout. Needs an email or phone for contact. | |
| request_id | No | Optional retry key. Repeating a request with the same key returns the first result instead of saving twice. | |
| remove_paths | No | Paths to delete from the draft. | |
| base_version_id | Yes | The draft's latest version id, which this change is based on. | |
| keep_unchanged_files | No | Default true. False means files is the complete new website. |