publish_site
Deploy multiple files to a website in one call. Pass file paths and content, and the CDN cache purges automatically.
Instructions
Deploy multiple files to a website in one call. Pass a map of file paths to content. CDN cache is purged automatically. This is the best way to publish or update a website. Example: 'Build a landing page and publish it'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Map of file paths to content. Keys are paths (e.g. 'index.html', 'css/style.css'). Values are raw text content. | |
| site_id | Yes | The website ID (UUID). Get from list_websites or create one first. | |
| purge_cache | No | Purge CDN cache after upload. Default: true |