Blog posts
The articles of a website’s blog — headline, slug, body, byline and dates, and the categories and tags they are filed under — each with a per-view overlay of its own. A post is live once it is active and its publish_time has passed.
List blog posts
One article of the website's blog: headline, slug, teaser, rich-text body, byline and dates, plus the categories and tags it belongs to. What a view says instead lives in its views overlay, and a post is live when is_active is true and publish_time has passed.
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, is_active, publish_time, slug, title.
filterAIP-160 subset (§8). Filterable: audience, author_id, category_ids, create_time, is_active, publish_time, slug, tag_ids, title, visible_view_ids. A field outside the list is INVALID_ARGUMENT.
List blog posts › Responses
One page of blog_posts.
This page of blog_posts, 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 post
One article of the website's blog: headline, slug, teaser, rich-text body, byline and dates, plus the categories and tags it belongs to. What a view says instead lives in its views overlay, and a post is live when is_active is true and publish_time has passed.
path Parameters
website_idId of the parent website.
Create blog post › Request Body
titleThe post's headline, and the label the admin lists it under.
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. While a view serves the blog at the site root (an empty general.blog.url_prefix), category, tag and author are refused: there those paths are the blog's archives.
is_activeWhether the post is published. Together with publish_time it decides what the live blog shows: an inactive post is never rendered, however old its publish time.
author_idThe blog_authors resource shown as the byline.
excerptThe short teaser used in listings and cards. Plain text, not the first paragraph of content.
contentThe post body as rich-text HTML, with entity:// links resolved per view when the page is rendered.
featured_image_media_idThe media resource used as the post's lead image, in listings and as the social-card picture.
publish_timeWhen the post is dated on the site. A time in the future keeps it out of the live blog until then, which is how a post is scheduled.
meta_titleThe <title> of the rendered post. Falls back to title when empty.
meta_descriptionThe meta description of the rendered post.
meta_keywordsThe meta keywords of the rendered post.
visible_view_idsThe views this post appears in. Empty means every view, not none.
audienceWho the post is for. PUBLIC — everybody, the default. AUTHENTICATED — the website's signed-in customers. GROUPS — the customers in at least one of customer_group_ids. A reader sees the post only if it is for them and so is every category it is in, with each category's ancestors: the strictest wins. A post not everybody may read is left out of the sitemap, the feeds, the site search, the public API 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.
category_idsThe categories this post belongs to. Filled in on a read of one post and on a write; a List leaves it out, because membership is a join and a page of posts would be a page of joins.
tag_idsThe tags on this post, with the same read rule as category_ids.
Create blog post › 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 post's headline, and the label the admin lists it under.
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. While a view serves the blog at the site root (an empty general.blog.url_prefix), category, tag and author are refused: there those paths are the blog's archives.
is_activeWhether the post is published. Together with publish_time it decides what the live blog shows: an inactive post is never rendered, however old its publish time.
author_idThe blog_authors resource shown as the byline.
excerptThe short teaser used in listings and cards. Plain text, not the first paragraph of content.
contentThe post body as rich-text HTML, with entity:// links resolved per view when the page is rendered.
featured_image_media_idThe media resource used as the post's lead image, in listings and as the social-card picture.
publish_timeWhen the post is dated on the site. A time in the future keeps it out of the live blog until then, which is how a post is scheduled.
meta_titleThe <title> of the rendered post. Falls back to title when empty.
meta_descriptionThe meta description of the rendered post.
meta_keywordsThe meta keywords of the rendered post.
visible_view_idsThe views this post appears in. Empty means every view, not none.
audienceWho the post is for. PUBLIC — everybody, the default. AUTHENTICATED — the website's signed-in customers. GROUPS — the customers in at least one of customer_group_ids. A reader sees the post only if it is for them and so is every category it is in, with each category's ancestors: the strictest wins. A post not everybody may read is left out of the sitemap, the feeds, the site search, the public API 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.
category_idsThe categories this post belongs to. Filled in on a read of one post and on a write; a List leaves it out, because membership is a join and a page of posts would be a page of joins.
tag_idsThe tags on this post, with the same read rule as category_ids.
Get blog post
One article of the website's blog: headline, slug, teaser, rich-text body, byline and dates, plus the categories and tags it belongs to. What a view says instead lives in its views overlay, and a post is live when is_active is true and publish_time has passed.
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 post › 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 post's headline, and the label the admin lists it under.
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. While a view serves the blog at the site root (an empty general.blog.url_prefix), category, tag and author are refused: there those paths are the blog's archives.
is_activeWhether the post is published. Together with publish_time it decides what the live blog shows: an inactive post is never rendered, however old its publish time.
author_idThe blog_authors resource shown as the byline.
excerptThe short teaser used in listings and cards. Plain text, not the first paragraph of content.
contentThe post body as rich-text HTML, with entity:// links resolved per view when the page is rendered.
featured_image_media_idThe media resource used as the post's lead image, in listings and as the social-card picture.
publish_timeWhen the post is dated on the site. A time in the future keeps it out of the live blog until then, which is how a post is scheduled.
meta_titleThe <title> of the rendered post. Falls back to title when empty.
meta_descriptionThe meta description of the rendered post.
meta_keywordsThe meta keywords of the rendered post.
visible_view_idsThe views this post appears in. Empty means every view, not none.
audienceWho the post is for. PUBLIC — everybody, the default. AUTHENTICATED — the website's signed-in customers. GROUPS — the customers in at least one of customer_group_ids. A reader sees the post only if it is for them and so is every category it is in, with each category's ancestors: the strictest wins. A post not everybody may read is left out of the sitemap, the feeds, the site search, the public API 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.
category_idsThe categories this post belongs to. Filled in on a read of one post and on a write; a List leaves it out, because membership is a join and a page of posts would be a page of joins.
tag_idsThe tags on this post, with the same read rule as category_ids.
Delete blog post
One article of the website's blog: headline, slug, teaser, rich-text body, byline and dates, plus the categories and tags it belongs to. What a view says instead lives in its views overlay, and a post is live when is_active is true and publish_time has passed.
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 post › Responses
Deleted. No body (§7).
Update blog post
One article of the website's blog: headline, slug, teaser, rich-text body, byline and dates, plus the categories and tags it belongs to. What a view says instead lives in its views overlay, and a post is live when is_active is true and publish_time has passed.
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 post › Request Body
titleThe post's headline, and the label the admin lists it under.
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. While a view serves the blog at the site root (an empty general.blog.url_prefix), category, tag and author are refused: there those paths are the blog's archives.
is_activeWhether the post is published. Together with publish_time it decides what the live blog shows: an inactive post is never rendered, however old its publish time.
author_idThe blog_authors resource shown as the byline.
excerptThe short teaser used in listings and cards. Plain text, not the first paragraph of content.
contentThe post body as rich-text HTML, with entity:// links resolved per view when the page is rendered.
featured_image_media_idThe media resource used as the post's lead image, in listings and as the social-card picture.
publish_timeWhen the post is dated on the site. A time in the future keeps it out of the live blog until then, which is how a post is scheduled.
meta_titleThe <title> of the rendered post. Falls back to title when empty.
meta_descriptionThe meta description of the rendered post.
meta_keywordsThe meta keywords of the rendered post.
visible_view_idsThe views this post appears in. Empty means every view, not none.
audienceWho the post is for. PUBLIC — everybody, the default. AUTHENTICATED — the website's signed-in customers. GROUPS — the customers in at least one of customer_group_ids. A reader sees the post only if it is for them and so is every category it is in, with each category's ancestors: the strictest wins. A post not everybody may read is left out of the sitemap, the feeds, the site search, the public API 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.
category_idsThe categories this post belongs to. Filled in on a read of one post and on a write; a List leaves it out, because membership is a join and a page of posts would be a page of joins.
tag_idsThe tags on this post, with the same read rule as category_ids.
Update blog post › 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 post's headline, and the label the admin lists it under.
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. While a view serves the blog at the site root (an empty general.blog.url_prefix), category, tag and author are refused: there those paths are the blog's archives.
is_activeWhether the post is published. Together with publish_time it decides what the live blog shows: an inactive post is never rendered, however old its publish time.
author_idThe blog_authors resource shown as the byline.
excerptThe short teaser used in listings and cards. Plain text, not the first paragraph of content.
contentThe post body as rich-text HTML, with entity:// links resolved per view when the page is rendered.
featured_image_media_idThe media resource used as the post's lead image, in listings and as the social-card picture.
publish_timeWhen the post is dated on the site. A time in the future keeps it out of the live blog until then, which is how a post is scheduled.
meta_titleThe <title> of the rendered post. Falls back to title when empty.
meta_descriptionThe meta description of the rendered post.
meta_keywordsThe meta keywords of the rendered post.
visible_view_idsThe views this post appears in. Empty means every view, not none.
audienceWho the post is for. PUBLIC — everybody, the default. AUTHENTICATED — the website's signed-in customers. GROUPS — the customers in at least one of customer_group_ids. A reader sees the post only if it is for them and so is every category it is in, with each category's ancestors: the strictest wins. A post not everybody may read is left out of the sitemap, the feeds, the site search, the public API 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.
category_idsThe categories this post belongs to. Filled in on a read of one post and on a write; a List leaves it out, because membership is a join and a page of posts would be a page of joins.
tag_idsThe tags on this post, with the same read rule as category_ids.
List blog post views
What one view says instead of the master post — headline, slug, teaser, body, SEO metadata and lead image. Every field falls back to the post, and overridden decides which of them this view claims.
path Parameters
website_idId of the parent website.
post_idId of the parent post.
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 post 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 post view
What one view says instead of the master post — headline, slug, teaser, body, SEO metadata and lead image. Every field falls back to the post, and overridden decides which of them this view claims.
path Parameters
website_idId of the parent website.
post_idId of the parent post.
Create blog post 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".
titleThis view's headline for the post.
slugThis view's URL segment for the post. Like the post's own, never category, tag or author while a view serves the blog at the site root.
excerptThis view's teaser for the post.
contentThis view's rich-text body for the post.
meta_titleThis view's <title> for the post.
meta_descriptionThis view's meta description for the post.
meta_keywordsThis view's meta keywords for the post.
featured_image_media_idThis view's lead image for the post, for a picture carrying text that has to be translated too.
Create blog post 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_post_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".
titleThis view's headline for the post.
slugThis view's URL segment for the post. Like the post's own, never category, tag or author while a view serves the blog at the site root.
excerptThis view's teaser for the post.
contentThis view's rich-text body for the post.
meta_titleThis view's <title> for the post.
meta_descriptionThis view's meta description for the post.
meta_keywordsThis view's meta keywords for the post.
featured_image_media_idThis view's lead image for the post, for a picture carrying text that has to be translated too.
Get blog post view
What one view says instead of the master post — headline, slug, teaser, body, SEO metadata and lead image. Every field falls back to the post, and overridden decides which of them this view claims.
path Parameters
website_idId of the parent website.
post_idId of the parent post.
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 post 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_post_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".
titleThis view's headline for the post.
slugThis view's URL segment for the post. Like the post's own, never category, tag or author while a view serves the blog at the site root.
excerptThis view's teaser for the post.
contentThis view's rich-text body for the post.
meta_titleThis view's <title> for the post.
meta_descriptionThis view's meta description for the post.
meta_keywordsThis view's meta keywords for the post.
featured_image_media_idThis view's lead image for the post, for a picture carrying text that has to be translated too.
Delete blog post view
What one view says instead of the master post — headline, slug, teaser, body, SEO metadata and lead image. Every field falls back to the post, and overridden decides which of them this view claims.
path Parameters
website_idId of the parent website.
post_idId of the parent post.
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 post view › Responses
Deleted. No body (§7).
Update blog post view
What one view says instead of the master post — headline, slug, teaser, body, SEO metadata and lead image. Every field falls back to the post, and overridden decides which of them this view claims.
path Parameters
website_idId of the parent website.
post_idId of the parent post.
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 post 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".
titleThis view's headline for the post.
slugThis view's URL segment for the post. Like the post's own, never category, tag or author while a view serves the blog at the site root.
excerptThis view's teaser for the post.
contentThis view's rich-text body for the post.
meta_titleThis view's <title> for the post.
meta_descriptionThis view's meta description for the post.
meta_keywordsThis view's meta keywords for the post.
featured_image_media_idThis view's lead image for the post, for a picture carrying text that has to be translated too.
Update blog post 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_post_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".
titleThis view's headline for the post.
slugThis view's URL segment for the post. Like the post's own, never category, tag or author while a view serves the blog at the site root.
excerptThis view's teaser for the post.
contentThis view's rich-text body for the post.
meta_titleThis view's <title> for the post.
meta_descriptionThis view's meta description for the post.
meta_keywordsThis view's meta keywords for the post.
featured_image_media_idThis view's lead image for the post, for a picture carrying text that has to be translated too.