Skip to main content
Use the complete configuration for order, control, and editorial targets, or when you want to review a change as code.

1. Read the draft

Call get_website:
Keep the returned version and fields you are not changing.

2. Edit and validate

Validate a VisitorSite in this repository with:
Outside the repository, use the matching client version or JSON schemas. The server also checks relationships that JSON Schema cannot express.
This is the draft object, not the enclosing workspace. Adapt its site ID and selector to your website.

3. Save

Call update_website with:
draft and components replace those collections. Documents replace only when supplied. On conflict, reread and reconcile.
Goals are live settings. Omit config.goals from a content-only edit. If a combined update fails, reread: a draft save may have succeeded before a settings change failed.
Preview and publish the saved draft separately. Coordinate selector changes with the website’s markup, and keep customer configurations outside the Dynamite service repository.