update_website_from_url
Redeploy or update a live static site by pointing to a public .zip archive or .html file URL; syncs files by default to match the archive.
Instructions
Redeploy an existing site from a URL (.zip of the site, or a single HTML page).
The URL form of update_website, for the hosted endpoint or any agent that has the build as a downloadable archive. sync defaults to true here because a zipped build is the whole site: after upload, files the archive does not contain are deleted (dashboard-authored redirect pages are kept). Pass sync=false to upsert only.
Args: website: The site's id, slug, or live URL. source_url: Public http(s) URL of a .zip archive or an .html file (≤150MB). title: Optional new site title. sync: Treat the archive as the whole site (default true).
Returns: Same shape as update_website.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sync | No | ||
| title | No | ||
| website | Yes | ||
| source_url | Yes |