Push a website to the iter0 canvas
iter0_push_sitePut a website you built, as finished HTML pages, on the person's iter0 canvas so they can comment on it, ask questions and leave notes there. Free: it uses no credits and publishes nothing. The first push for a sourceId creates the site (one saved design per page, grouped in a project) and returns its designId and one canvasUrl that shows every page as a frame. Later pushes with the same sourceId update pages by pageKey and add new ones; pages left out stay as they are. To replace a page that already exists, pass its current version (from the last push, iter0_get_canvas_feedback or iter0_read_canvas_page) as expectedVersion; if the person edited it since, nothing is changed and the result lists the conflict. Retrying the exact same push changes nothing. Each page must be one self-contained HTML document: inline its CSS, scripts and images or use absolute https URLs; relative files are not uploaded. Limits: 20 pages per canvas, 20 per call, 1,800,000 bytes per page and 2,100,000 bytes per call, so push a large site in several calls with the same sourceId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | Yes | ||
| designId | No | Optional check: the designId an earlier push returned for this sourceId. A mismatch changes nothing. | |
| siteName | Yes | The site's name as the person will see it in iter0. | |
| sourceId | Yes | A stable name for this website's source that you reuse on every push, for example github.com/acme/site or local:acme-site. | |
| projectId | No | Optional, first push only: an existing iter0 project to put the pages in. Without it a new project named after the site is made. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||