Publish a site
iter0_publish_sitePuts a saved site live at its own free address, name.iter0.app, so anyone can open it. Free: it uses no credits. Takes the designId and, optionally, a name for the address (lowercase letters, numbers and hyphens, 3 to 63 characters; without one, iter0 uses the free address it suggests). Called without confirmationToken, nothing goes live: it returns the exact address and a confirmationToken. Called again with the same designId and that confirmationToken, it publishes, and the site becomes public. A confirmationToken cannot publish twice. If the site is already live and up to date it says so and needs no token. If the result says the outcome is unknown, iter0_publish_status shows whether the site is live. Only the site's owner can publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| designId | Yes | The saved design, from iter0_get_design or iter0_list_my_designs. | |
| subdomain | No | The name for the address: name.iter0.app. Optional; only on the first call, and only when the person chose a name. | |
| confirmationToken | No | Leave out on the first call. On the second call pass the token the first call returned, unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||