Blog categories
The sections of the blog. Categories form a tree reordered with :move, :set_posts replaces the posts of one category in a single call, and each category has a per-view overlay of its own.
List blog categories
A section of the blog. Categories form a tree: parent_id names the one above, path and url_path are maintained by the server, and the shape is changed with :move rather than by writing those fields. :set_posts replaces the posts of one category in a single call.
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, sort_order, url_path.
filterAIP-160 subset (§8). Filterable: audience, create_time, display_name, is_active, parent_id, path, slug, url_path, visible_view_ids. A field outside the list is INVALID_ARGUMENT.
List blog categories › Responses
One page of blog_categories.
This page of blog_categories, 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 blog category
A section of the blog. Categories form a tree: parent_id names the one above, path and url_path are maintained by the server, and the shape is changed with :move rather than by writing those fields. :set_posts replaces the posts of one category in a single call.
path Parameters
website_idId of the parent website.
Create blog category › Request Body
display_nameThe name this is shown under, on the site and in the admin.
slugThe URL segment this is addressed by on the live site. Unique among its siblings, and a view may override it so a translated page gets a translated URL.
is_activeWhether the category is shown. Hiding one hides its whole subtree on the site.
parent_idThe category this one hangs under; empty at the root. Settable on create and immutable afterwards — moving a category is :move, which recomputes the whole subtree.
descriptionThe blurb rendered on the category's own page.
visible_view_idsThe views this category appears in. Empty means every view, not none.
audienceWho the category is for, with the values of a post's audience. It narrows the whole subtree: a subcategory, and every post in the category or below it, reaches only readers this category is for too — the strictest audience on the way up wins. A category not everybody may read is left out of the sitemap, the menus of anonymous visitors and every cached copy of the blog.
customer_group_idsThe customer_groups of the website a GROUPS audience is for — at least one, at most 100. Empty for any other audience: setting the audience to anything else empties it, and a deleted group drops out of it on its own.
show_in_navigationWhether the category is listed in a menu item's automatic subcategory dropdown; a hidden one takes its subtree with it. Absent counts as on. The category's pages, tiles and search are not affected. null clears it; omitted when unset.
Create blog category › 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).
display_nameThe name this is shown under, on the site and in the admin.
slugThe URL segment this is addressed by on the live site. Unique among its siblings, and a view may override it so a translated page gets a translated URL.
parent_idThe category this one hangs under; empty at the root. Settable on create and immutable afterwards — moving a category is :move, which recomputes the whole subtree.
pathThe category's position in the tree: the ids of its ancestors and its own, in order. Sorting by it is what renders a whole tree in one page.
url_pathThe category's full URL path on the live site — its own slug behind the slugs of its ancestors.
levelHow deep the category sits, counting the root as 0. Server-maintained, like the rest of the tree bookkeeping.
sort_orderThe category's position among its siblings. Set by :move, never by a write.
descriptionThe blurb rendered on the category's own page.
is_activeWhether the category is shown. Hiding one hides its whole subtree on the site.
visible_view_idsThe views this category appears in. Empty means every view, not none.
audienceWho the category is for, with the values of a post's audience. It narrows the whole subtree: a subcategory, and every post in the category or below it, reaches only readers this category is for too — the strictest audience on the way up wins. A category not everybody may read is left out of the sitemap, the menus of anonymous visitors and every cached copy of the blog.
customer_group_idsThe customer_groups of the website a GROUPS audience is for — at least one, at most 100. Empty for any other audience: setting the audience to anything else empties it, and a deleted group drops out of it on its own.
show_in_navigationWhether the category is listed in a menu item's automatic subcategory dropdown; a hidden one takes its subtree with it. Absent counts as on. The category's pages, tiles and search are not affected. null clears it; omitted when unset.
Get blog category
A section of the blog. Categories form a tree: parent_id names the one above, path and url_path are maintained by the server, and the shape is changed with :move rather than by writing those fields. :set_posts replaces the posts of one category in a single call.
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 blog category › 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).
display_nameThe name this is shown under, on the site and in the admin.
slugThe URL segment this is addressed by on the live site. Unique among its siblings, and a view may override it so a translated page gets a translated URL.
parent_idThe category this one hangs under; empty at the root. Settable on create and immutable afterwards — moving a category is :move, which recomputes the whole subtree.
pathThe category's position in the tree: the ids of its ancestors and its own, in order. Sorting by it is what renders a whole tree in one page.
url_pathThe category's full URL path on the live site — its own slug behind the slugs of its ancestors.
levelHow deep the category sits, counting the root as 0. Server-maintained, like the rest of the tree bookkeeping.
sort_orderThe category's position among its siblings. Set by :move, never by a write.
descriptionThe blurb rendered on the category's own page.
is_activeWhether the category is shown. Hiding one hides its whole subtree on the site.
visible_view_idsThe views this category appears in. Empty means every view, not none.
audienceWho the category is for, with the values of a post's audience. It narrows the whole subtree: a subcategory, and every post in the category or below it, reaches only readers this category is for too — the strictest audience on the way up wins. A category not everybody may read is left out of the sitemap, the menus of anonymous visitors and every cached copy of the blog.
customer_group_idsThe customer_groups of the website a GROUPS audience is for — at least one, at most 100. Empty for any other audience: setting the audience to anything else empties it, and a deleted group drops out of it on its own.
show_in_navigationWhether the category is listed in a menu item's automatic subcategory dropdown; a hidden one takes its subtree with it. Absent counts as on. The category's pages, tiles and search are not affected. null clears it; omitted when unset.
Delete blog category
A section of the blog. Categories form a tree: parent_id names the one above, path and url_path are maintained by the server, and the shape is changed with :move rather than by writing those fields. :set_posts replaces the posts of one category in a single call.
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 blog category › Responses
Deleted. No body (§7).
Update blog category
A section of the blog. Categories form a tree: parent_id names the one above, path and url_path are maintained by the server, and the shape is changed with :move rather than by writing those fields. :set_posts replaces the posts of one category in a single call.
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 blog category › Request Body
display_nameThe name this is shown under, on the site and in the admin.
slugThe URL segment this is addressed by on the live site. Unique among its siblings, and a view may override it so a translated page gets a translated URL.
descriptionThe blurb rendered on the category's own page.
is_activeWhether the category is shown. Hiding one hides its whole subtree on the site.
visible_view_idsThe views this category appears in. Empty means every view, not none.
audienceWho the category is for, with the values of a post's audience. It narrows the whole subtree: a subcategory, and every post in the category or below it, reaches only readers this category is for too — the strictest audience on the way up wins. A category not everybody may read is left out of the sitemap, the menus of anonymous visitors and every cached copy of the blog.
customer_group_idsThe customer_groups of the website a GROUPS audience is for — at least one, at most 100. Empty for any other audience: setting the audience to anything else empties it, and a deleted group drops out of it on its own.
show_in_navigationWhether the category is listed in a menu item's automatic subcategory dropdown; a hidden one takes its subtree with it. Absent counts as on. The category's pages, tiles and search are not affected. null clears it; omitted when unset.
Update blog category › 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).
display_nameThe name this is shown under, on the site and in the admin.
slugThe URL segment this is addressed by on the live site. Unique among its siblings, and a view may override it so a translated page gets a translated URL.
parent_idThe category this one hangs under; empty at the root. Settable on create and immutable afterwards — moving a category is :move, which recomputes the whole subtree.
pathThe category's position in the tree: the ids of its ancestors and its own, in order. Sorting by it is what renders a whole tree in one page.
url_pathThe category's full URL path on the live site — its own slug behind the slugs of its ancestors.
levelHow deep the category sits, counting the root as 0. Server-maintained, like the rest of the tree bookkeeping.
sort_orderThe category's position among its siblings. Set by :move, never by a write.
descriptionThe blurb rendered on the category's own page.
is_activeWhether the category is shown. Hiding one hides its whole subtree on the site.
visible_view_idsThe views this category appears in. Empty means every view, not none.
audienceWho the category is for, with the values of a post's audience. It narrows the whole subtree: a subcategory, and every post in the category or below it, reaches only readers this category is for too — the strictest audience on the way up wins. A category not everybody may read is left out of the sitemap, the menus of anonymous visitors and every cached copy of the blog.
customer_group_idsThe customer_groups of the website a GROUPS audience is for — at least one, at most 100. Empty for any other audience: setting the audience to anything else empties it, and a deleted group drops out of it on its own.
show_in_navigationWhether the category is listed in a menu item's automatic subcategory dropdown; a hidden one takes its subtree with it. Absent counts as on. The category's pages, tiles and search are not affected. null clears it; omitted when unset.
Move (blog category)
Moves a category inside the tree. Send {"parent_id": ..., "after_id": ...}: parent_id absent or null means the root, after_id absent or null means first among its new siblings.
This is the only way to re-parent or reorder a category — parent_id is immutable on Update — because the move is what rewrites path, url_path, level and sort_order for the whole subtree. It answers with the moved category, so those recomputed fields need no second read.
path Parameters
website_idId of the parent website.
idId of the blog_categories resource this URL addresses.
Move (blog category) › Request Body optional
Move (blog category) › Responses
The affected resource, or the method’s own response object (§10).
Set posts (blog category)
Replaces the posts of one category in a single call: send {"post_ids": [...]} and the category ends up with exactly those, in that order. It is a write on the category, not a sub-collection — which is why it is a custom method and not a POST to a posts collection that does not exist.
path Parameters
website_idId of the parent website.
idId of the blog_categories resource this URL addresses.
Set posts (blog category) › Request Body optional
Set posts (blog category) › Responses
The affected resource, or the method’s own response object (§10).
List blog category views
What one view says instead of the master category: its name, its blurb and its URL segment. The shape of the tree is not overridable — a category has the same parent and the same siblings in every view.
path Parameters
website_idId of the parent website.
category_idId of the parent category.
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 blog category 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 blog category view
What one view says instead of the master category: its name, its blurb and its URL segment. The shape of the tree is not overridable — a category has the same parent and the same siblings in every view.
path Parameters
website_idId of the parent website.
category_idId of the parent category.
Create blog category view › Request Body
overriddenThe names of the fields this view actually overrides. A field counts as overridden only while it is listed here — an empty value with the field absent from this list means "use the master", not "show nothing".
display_nameThis view's name for the resource.
descriptionThis view's blurb for the category.
slugThis view's URL segment for the category, so a translated section gets a translated URL.
Create blog category 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).
blog_category_idThe resource this overlay belongs to. Fixed by the URL — an overlay cannot change master.
view_idThe view this overlay speaks for. Fixed by the URL.
overriddenThe names of the fields this view actually overrides. A field counts as overridden only while it is listed here — an empty value with the field absent from this list means "use the master", not "show nothing".
display_nameThis view's name for the resource.
descriptionThis view's blurb for the category.
slugThis view's URL segment for the category, so a translated section gets a translated URL.
Get blog category view
What one view says instead of the master category: its name, its blurb and its URL segment. The shape of the tree is not overridable — a category has the same parent and the same siblings in every view.
path Parameters
website_idId of the parent website.
category_idId of the parent category.
view_idThe view this overlay speaks for. Fixed by the URL.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get blog category 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).
blog_category_idThe resource this overlay belongs to. Fixed by the URL — an overlay cannot change master.
view_idThe view this overlay speaks for. Fixed by the URL.
overriddenThe names of the fields this view actually overrides. A field counts as overridden only while it is listed here — an empty value with the field absent from this list means "use the master", not "show nothing".
display_nameThis view's name for the resource.
descriptionThis view's blurb for the category.
slugThis view's URL segment for the category, so a translated section gets a translated URL.
Delete blog category view
What one view says instead of the master category: its name, its blurb and its URL segment. The shape of the tree is not overridable — a category has the same parent and the same siblings in every view.
path Parameters
website_idId of the parent website.
category_idId of the parent category.
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 blog category view › Responses
Deleted. No body (§7).
Update blog category view
What one view says instead of the master category: its name, its blurb and its URL segment. The shape of the tree is not overridable — a category has the same parent and the same siblings in every view.
path Parameters
website_idId of the parent website.
category_idId of the parent category.
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 blog category view › Request Body
overriddenThe names of the fields this view actually overrides. A field counts as overridden only while it is listed here — an empty value with the field absent from this list means "use the master", not "show nothing".
display_nameThis view's name for the resource.
descriptionThis view's blurb for the category.
slugThis view's URL segment for the category, so a translated section gets a translated URL.
Update blog category 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).
blog_category_idThe resource this overlay belongs to. Fixed by the URL — an overlay cannot change master.
view_idThe view this overlay speaks for. Fixed by the URL.
overriddenThe names of the fields this view actually overrides. A field counts as overridden only while it is listed here — an empty value with the field absent from this list means "use the master", not "show nothing".
display_nameThis view's name for the resource.
descriptionThis view's blurb for the category.
slugThis view's URL segment for the category, so a translated section gets a translated URL.