Update a site
artifact_site_updateUpdate a published artifact's content or rename its display title while keeping the same URL. Replace all contents with new HTML/files or change only the title.
Instructions
Update an existing remote artifact while keeping its address, or rename its display title. For 'replace this report with the new version', supply exactly one of html/files/upload_id AND expected_version from get_site/export. This replaces ALL contents; omitted files are removed. For 'rename this artifact', supply only slug and title: no content version is created. Do not combine a rename-only request with upload fields. Use edit for one text file. A 409 means someone changed the artifact: inspect it before explicitly choosing what to keep; staged bytes remain available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Complete HTML document; exclusive with files/upload_id. | |
| slug | Yes | Artifact identifier returned by find/publish, or the slug in its /s/ URL. Not a local path. | |
| files | No | Complete relative file tree with UTF-8 or base64 contents; exclusive with html/upload_id. | |
| title | No | Display title; does not change the URL. | |
| official | No | Designate the uploaded version as the only official version; replaces the old designation without deleting contents. | |
| tenant_id | No | Destination tenant for creation; defaults to the account tenant. | |
| upload_id | No | Completed upload ID from upload_start; supply instead of html/files after all files have final:true. | |
| share_token | No | Token from a user-provided share URL; carries only that share permission. | |
| operation_key | No | Persist a unique key before this write. Reuse exactly the same key and arguments after errors; recover results for seven days using operation_status. | |
| expected_version | No | Required for content replacement; version ID read before editing. Omit for title-only changes. |