CMS blocks
Reusable fragments of content, addressed by identifier and pulled into pages, themes and smart links, each with a per-view overlay of its content in that view.
List CMS blocks
A reusable fragment of content, addressed by its identifier and pulled into pages, themes and smart links rather than into a URL of its own. Footers, contact strips, banners — anything that has to say the same thing in several places and change in one.
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: create_time desc. Sortable: create_time, identifier, title.
filterAIP-160 subset (§8). Filterable: create_time, identifier, is_active, title. A field outside the list is INVALID_ARGUMENT.
List CMS blocks › Responses
One page of cms_blocks.
This page of cms_blocks, 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.
Create CMS block
A reusable fragment of content, addressed by its identifier and pulled into pages, themes and smart links rather than into a URL of its own. Footers, contact strips, banners — anything that has to say the same thing in several places and change in one.
path Parameters
website_idId of the parent website.
Create CMS block › Request Body
titleThe block's label in the admin. Never rendered on the site — the block is its content.
identifierThe handle a page, a theme or a smart link pulls this block in by. Unique per website, and the one field worth keeping stable.
is_activeWhether the block renders. An inactive block is left out wherever it is referenced.
contentThe fragment itself, as rich-text HTML.
Create CMS block › Responses
The created 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).
titleThe block's label in the admin. Never rendered on the site — the block is its content.
identifierThe handle a page, a theme or a smart link pulls this block in by. Unique per website, and the one field worth keeping stable.
is_activeWhether the block renders. An inactive block is left out wherever it is referenced.
contentThe fragment itself, as rich-text HTML.
Get CMS block
A reusable fragment of content, addressed by its identifier and pulled into pages, themes and smart links rather than into a URL of its own. Footers, contact strips, banners — anything that has to say the same thing in several places and change in one.
path Parameters
website_idId of the parent website.
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.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get CMS block › 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).
titleThe block's label in the admin. Never rendered on the site — the block is its content.
identifierThe handle a page, a theme or a smart link pulls this block in by. Unique per website, and the one field worth keeping stable.
is_activeWhether the block renders. An inactive block is left out wherever it is referenced.
contentThe fragment itself, as rich-text HTML.
Delete CMS block
A reusable fragment of content, addressed by its identifier and pulled into pages, themes and smart links rather than into a URL of its own. Footers, contact strips, banners — anything that has to say the same thing in several places and change in one.
path Parameters
website_idId of the parent website.
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.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete CMS block › Responses
Deleted. No body (§7).
Update CMS block
A reusable fragment of content, addressed by its identifier and pulled into pages, themes and smart links rather than into a URL of its own. Footers, contact strips, banners — anything that has to say the same thing in several places and change in one.
path Parameters
website_idId of the parent website.
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.
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 CMS block › Request Body
titleThe block's label in the admin. Never rendered on the site — the block is its content.
identifierThe handle a page, a theme or a smart link pulls this block in by. Unique per website, and the one field worth keeping stable.
is_activeWhether the block renders. An inactive block is left out wherever it is referenced.
contentThe fragment itself, as rich-text HTML.
Update CMS block › 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).
titleThe block's label in the admin. Never rendered on the site — the block is its content.
identifierThe handle a page, a theme or a smart link pulls this block in by. Unique per website, and the one field worth keeping stable.
is_activeWhether the block renders. An inactive block is left out wherever it is referenced.
contentThe fragment itself, as rich-text HTML.
List CMS block views
What one view says instead of the master block. A block has one field worth translating, so this is the smallest overlay in the API — but it works exactly like the others: optional fields, a fallback to the master, and overridden deciding which of them this view claims.
path Parameters
website_idId of the parent website.
block_idId of the parent block.
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: create_time desc. Sortable: none — this collection serves its documented order only.
filterAIP-160 subset (§8). Filterable: none. A field outside the list is INVALID_ARGUMENT.
List CMS block views › Responses
One page of views.
This page of views, 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.
Create CMS block view
What one view says instead of the master block. A block has one field worth translating, so this is the smallest overlay in the API — but it works exactly like the others: optional fields, a fallback to the master, and overridden deciding which of them this view claims.
path Parameters
website_idId of the parent website.
block_idId of the parent block.
Create CMS block view › Request Body
overriddenThe names of the fields this view actually overrides — here, at most content. A field not listed falls back to the block.
contentThis view's rich-text body for the block.
Create CMS block view › Responses
The created 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).
cms_block_idThe block this overlay belongs to. Fixed by the URL.
view_idThe view this overlay speaks for. Fixed by the URL.
overriddenThe names of the fields this view actually overrides — here, at most content. A field not listed falls back to the block.
contentThis view's rich-text body for the block.
Get CMS block view
What one view says instead of the master block. A block has one field worth translating, so this is the smallest overlay in the API — but it works exactly like the others: optional fields, a fallback to the master, and overridden deciding which of them this view claims.
path Parameters
website_idId of the parent website.
block_idId of the parent block.
view_idThe view this overlay speaks for. Fixed by the URL.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get CMS block view › 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).
cms_block_idThe block this overlay belongs to. Fixed by the URL.
view_idThe view this overlay speaks for. Fixed by the URL.
overriddenThe names of the fields this view actually overrides — here, at most content. A field not listed falls back to the block.
contentThis view's rich-text body for the block.
Delete CMS block view
What one view says instead of the master block. A block has one field worth translating, so this is the smallest overlay in the API — but it works exactly like the others: optional fields, a fallback to the master, and overridden deciding which of them this view claims.
path Parameters
website_idId of the parent website.
block_idId of the parent block.
view_idThe view this overlay speaks for. Fixed by the URL.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete CMS block view › Responses
Deleted. No body (§7).
Update CMS block view
What one view says instead of the master block. A block has one field worth translating, so this is the smallest overlay in the API — but it works exactly like the others: optional fields, a fallback to the master, and overridden deciding which of them this view claims.
path Parameters
website_idId of the parent website.
block_idId of the parent block.
view_idThe view this overlay speaks for. Fixed by the URL.
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 CMS block view › Request Body
overriddenThe names of the fields this view actually overrides — here, at most content. A field not listed falls back to the block.
contentThis view's rich-text body for the block.
Update CMS block view › 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).
cms_block_idThe block this overlay belongs to. Fixed by the URL.
view_idThe view this overlay speaks for. Fixed by the URL.
overriddenThe names of the fields this view actually overrides — here, at most content. A field not listed falls back to the block.
contentThis view's rich-text body for the block.