update_region_settings
Update a single layout region's settings on a page, such as sidebar width or header variant, while preserving other regions and validating values against the workspace layout manifest.
Instructions
Set the settings of one layout region on a page, e.g. a sidebar's width or a header's variant. Reads the page's current region settings, replaces only the named region and writes the whole list back (page.updateLayout with layoutRegionSettings, one version-guarded write); entries for regions or keys the manifest no longer declares are pruned on the way. Values are validated against the workspace layout manifest's region settings schema: an unknown region, an unknown key, or non-empty values on a region that declares no settings (such a region accepts {} only) is rejected with the backend's BAD_USER_INPUT message. Child pages inherit the region's settings unless they set their own (see get_page.resolvedRegions).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | The page id (from list_pages/get_page) | |
| region | No | Layout region name declared by the workspace's layout manifest, e.g. 'sidebar' or 'header' | |
| values | No | Settings values for the region, keyed as the manifest's region settings schema declares. Replaces this region's values; other regions keep theirs. A region that declares no settings accepts {} only. | |
| expectedVersion | No | Optimistic-concurrency guard. Defaults to the version read before the write. |