Website settings
Website-wide settings, addressed by their dotted path. The platform decides which paths exist, so there is no Create, and :batch_update writes many of them atomically.
List website settings
One website-wide setting, addressed by its dotted path. Two things about this collection are worth knowing before you write to it: the id is the path, and there is no Create — the platform decides which paths exist (setting_descriptors), so PATCH on a path never written before creates it, and on a path not described there is refused. :batch_update writes many at once, which is what a settings screen should send instead of a burst of single writes.
path Parameters
website_idId of the parent website.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: path asc. Sortable: create_time, path.
filterAIP-160 subset (§8). Filterable: create_time, path, view_id. A field outside the list is INVALID_ARGUMENT.
List website settings › Responses
One page of settings.
This page of settings, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Get website setting
One website-wide setting, addressed by its dotted path. Two things about this collection are worth knowing before you write to it: the id is the path, and there is no Create — the platform decides which paths exist (setting_descriptors), so PATCH on a path never written before creates it, and on a path not described there is refused. :batch_update writes many at once, which is what a settings screen should send instead of a burst of single writes.
path Parameters
website_idId of the parent website.
pathThe setting's dotted path, which is also its id — general.info.site_name, appearance.theme.default_theme. Which paths exist is decided by the platform and listed in setting_descriptors, so a write cannot invent one and cannot move one.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get website setting › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
pathThe setting's dotted path, which is also its id — general.info.site_name, appearance.theme.default_theme. Which paths exist is decided by the platform and listed in setting_descriptors, so a write cannot invent one and cannot move one.
view_idEmpty on this collection: these are the website-wide values. A value overridden for one view is a resource of websites/{website}/views/{view}/settings, and carries that view there.
valueThe setting's value — a string, a number, a boolean, an object or an array: the type its setting_descriptors entry states. A value of another type, or outside the entry's enum_values, is refused. The AI assistant reads "[secret]" in place of a secret one.
Delete website setting
One website-wide setting, addressed by its dotted path. Two things about this collection are worth knowing before you write to it: the id is the path, and there is no Create — the platform decides which paths exist (setting_descriptors), so PATCH on a path never written before creates it, and on a path not described there is refused. :batch_update writes many at once, which is what a settings screen should send instead of a burst of single writes.
path Parameters
website_idId of the parent website.
pathThe setting's dotted path, which is also its id — general.info.site_name, appearance.theme.default_theme. Which paths exist is decided by the platform and listed in setting_descriptors, so a write cannot invent one and cannot move one.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete website setting › Responses
Deleted. No body (§7).
Update website setting
One website-wide setting, addressed by its dotted path. Two things about this collection are worth knowing before you write to it: the id is the path, and there is no Create — the platform decides which paths exist (setting_descriptors), so PATCH on a path never written before creates it, and on a path not described there is refused. :batch_update writes many at once, which is what a settings screen should send instead of a burst of single writes.
path Parameters
website_idId of the parent website.
pathThe setting's dotted path, which is also its id — general.info.site_name, appearance.theme.default_theme. Which paths exist is decided by the platform and listed in setting_descriptors, so a write cannot invent one and cannot move one.
query Parameters
update_maskComma-separated field paths to merge. A field named here and sent as null is cleared; without the mask a null is dropped (§7, §11).
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Update website setting › Request Body
valueThe setting's value — a string, a number, a boolean, an object or an array: the type its setting_descriptors entry states. A value of another type, or outside the entry's enum_values, is refused. The AI assistant reads "[secret]" in place of a secret one.
Update website setting › Responses
The updated resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
pathThe setting's dotted path, which is also its id — general.info.site_name, appearance.theme.default_theme. Which paths exist is decided by the platform and listed in setting_descriptors, so a write cannot invent one and cannot move one.
view_idEmpty on this collection: these are the website-wide values. A value overridden for one view is a resource of websites/{website}/views/{view}/settings, and carries that view there.
valueThe setting's value — a string, a number, a boolean, an object or an array: the type its setting_descriptors entry states. A value of another type, or outside the entry's enum_values, is refused. The AI assistant reads "[secret]" in place of a secret one.
Batch update (website settings)
Writes many settings in one atomic call: every value lands or none does. This is what a settings screen should send instead of a burst of single PATCHes — a half-applied screen is a site configured in a state nobody chose.
path Parameters
website_idId of the parent website.
Batch update (website settings) › Request Body optional
Batch update (website settings) › Responses
The affected resource, or the method’s own response object (§10).