create_site_from_template
Create a new storefront by cloning a marketplace template's pages, global sections, styles, and fonts, then switch to it for immediate editing and publishing.
Instructions
Create a NEW site from a marketplace TEMPLATE (the dedicated "use this template" API). Clones the template's pages, global sections, cart, popups, styles and fonts into a fresh site. Pick a template with semantic_search_themes / list_template_themes, then pass its theme_id here. Switches to the new site so you can immediately edit layout/content with update_page_element(s), colours/fonts via the site-style tools, then publish_site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new site | |
| slug | No | URL-safe slug for the new site (auto-generated if omitted) | |
| theme_id | Yes | Marketplace theme id (from semantic_search_themes / list_template_themes) | |
| switch_to | No | Switch the session to the new site after creating it (saved for next session) |