1. Read the draft
Callget_website:
version and fields you are not changing.
2. Edit and validate
Validate aVisitorSite in this repository with:
Complete VisitorSite example
Complete VisitorSite example
draft object, not the enclosing workspace. Adapt its site ID and selector to your website.3. Save
Callupdate_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.