HOC SiteDocumentation

save_website

Create a website in preview mode (always). Call get_templates first (without templateId it lists templates) and prefer a template over blank when one fits. Response includes previewUntil and a message: user must sign in to the admin panel to purchase a subscription; public visitors cannot browse until subscribed.

save_website · Group: websites

Create a website in preview mode (always). Call get_templates first (without templateId it lists templates) and prefer a template over blank when one fits. Response includes previewUntil and a message: user must sign in to the admin panel to purchase a subscription; public visitors cannot browse until subscribed.

Inputs

FieldRequiredNotes
namerequired
templateIdrequired
primaryLocaleoptional
enabledLocalesoptional

Maps to

  • POST /api/v1/{locale}/websites → API