Change some files of a site
patch_siteChanges some files of a live site and keeps the rest: files are added or replace the live file at the same path, deletePaths are removed, and every other live file stays exactly as it is. The result is published atomically as a new version, under the same rules as any deploy: the whole site afterwards needs a root index.html and must fit 200 files and the plan's site size (4 MB on Hobby, 25 MB on a paid plan); one call carries at most 4 MB. It starts from the live version, never from an unpublished draft. A deletePath that is not a live file is refused, naming it. When the monthly deployment allowance is used up, the result is saved as a draft and published is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Files to add, or to replace the live file at the same path. | |
| siteId | Yes | ||
| message | No | Shown in deployment history. e.g. "Updated opening hours" | |
| deletePaths | No | Paths of live files to remove, e.g. "old-offer.html". |