Import HTML site
import_siteTurn a static HTML site (index.html + pages, CSS, JS, images) into a NEW editable multi-page PageHub site draft. Inputs, one per call: filePath (local folder or .zip; local server only); size (zip bytes) returns an upload URL, curl line and uploadKey; uploadKey, after the PUT, starts the import; files sends text files inline (≤3MB). Returns an importId for get_import_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Site name (default: home page title). | |
| size | No | Exact zip size in bytes → returns an upload URL. | |
| files | No | Inline files: path relative to the site root. | |
| uploadKey | No | From the size step, after the PUT succeeded → starts the import. |