Menu items
The entries of a menu: what each points at, nesting and order through :move, plus the per-view overlay of a single item’s title, URL and visibility. A link to a page names the page, so it survives the page being renamed.
List menu items
One entry of a menu. What it points at is type, and type decides which of the target fields is read — a link to a page carries cms_page_id, not a URL, so the menu survives the page being renamed or translated. Items nest: parent_id is set on create, and the shape and the order are changed with :move afterwards.
path Parameters
website_idId of the parent website.
menu_idThe menu this item belongs to. Fixed by the URL.
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: sort_order asc. Sortable: create_time, sort_order.
filterAIP-160 subset (§8). Filterable: create_time, enabled, parent_id, type. A field outside the list is INVALID_ARGUMENT.
List menu items › Responses
One page of items.
This page of items, 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 menu item
One entry of a menu. What it points at is type, and type decides which of the target fields is read — a link to a page carries cms_page_id, not a URL, so the menu survives the page being renamed or translated. Items nest: parent_id is set on create, and the shape and the order are changed with :move afterwards.
path Parameters
website_idId of the parent website.
menu_idThe menu this item belongs to. Fixed by the URL.
Create menu item › Request Body
titleThe text of the link, as the menu renders it.
typeWhat the item points at, which decides which of the fields below is read: TEXT (a heading with no link), URL, CMS_PAGE, RAW_HTML, BLOG, BLOG_CATEGORY, BLOG_AUTHOR, BLOG_POST, BLOG_TAG, FEEDBACK_FORM, CATALOG (the product catalog's listing) or CATALOG_CATEGORY.
urlThe address a URL item points at. Anything else — a page, a category, a post — is linked by its id below, so the URL follows the resource when its slug or its view changes.
cms_page_idThe page a CMS_PAGE item points at.
blog_category_idThe category a BLOG_CATEGORY item points at.
blog_author_idThe author a BLOG_AUTHOR item points at.
blog_post_idThe post a BLOG_POST item points at.
blog_tag_idThe tag a BLOG_TAG item points at.
catalog_category_idThe product category a CATALOG_CATEGORY item points at. The link follows the category's own address in each view, and the item is left out of a view where the category is switched off or hidden.
parent_idThe item this one nests under; empty at the top level. Settable on create and immutable afterwards — re-nesting is :move.
pathThe item's position in the menu tree, as the ids of its ancestors and its own. Server-generated: sending it is an error rather than a no-op.
sort_orderThe item's position among its siblings, and the order the menu renders in. Changed with :move; sending it is an error.
levelHow deep the item sits, counting the top level as 0. Server-generated; sending it is an error.
htmlThe markup a RAW_HTML item renders instead of a link — a language switcher, a badge, a call button.
targetThe link target, when the item should not open in place: _blank for a new tab.
enabledWhether the item is rendered in the menu.
show_subcategoriesFor a BLOG, BLOG_CATEGORY, CATALOG or CATALOG_CATEGORY item: whether the site's header lists the categories (the whole tree, or the item's category's subtree) under the item as a dropdown. Absent counts as on; ignored on other types.
Create menu item › 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).
menu_idThe menu this item belongs to. Fixed by the URL.
titleThe text of the link, as the menu renders it.
typeWhat the item points at, which decides which of the fields below is read: TEXT (a heading with no link), URL, CMS_PAGE, RAW_HTML, BLOG, BLOG_CATEGORY, BLOG_AUTHOR, BLOG_POST, BLOG_TAG, FEEDBACK_FORM, CATALOG (the product catalog's listing) or CATALOG_CATEGORY.
urlThe address a URL item points at. Anything else — a page, a category, a post — is linked by its id below, so the URL follows the resource when its slug or its view changes.
cms_page_idThe page a CMS_PAGE item points at.
blog_category_idThe category a BLOG_CATEGORY item points at.
blog_author_idThe author a BLOG_AUTHOR item points at.
blog_post_idThe post a BLOG_POST item points at.
blog_tag_idThe tag a BLOG_TAG item points at.
catalog_category_idThe product category a CATALOG_CATEGORY item points at. The link follows the category's own address in each view, and the item is left out of a view where the category is switched off or hidden.
parent_idThe item this one nests under; empty at the top level. Settable on create and immutable afterwards — re-nesting is :move.
pathThe item's position in the menu tree, as the ids of its ancestors and its own. Server-generated: sending it is an error rather than a no-op.
sort_orderThe item's position among its siblings, and the order the menu renders in. Changed with :move; sending it is an error.
levelHow deep the item sits, counting the top level as 0. Server-generated; sending it is an error.
htmlThe markup a RAW_HTML item renders instead of a link — a language switcher, a badge, a call button.
targetThe link target, when the item should not open in place: _blank for a new tab.
enabledWhether the item is rendered in the menu.
show_subcategoriesFor a BLOG, BLOG_CATEGORY, CATALOG or CATALOG_CATEGORY item: whether the site's header lists the categories (the whole tree, or the item's category's subtree) under the item as a dropdown. Absent counts as on; ignored on other types.
Get menu item
One entry of a menu. What it points at is type, and type decides which of the target fields is read — a link to a page carries cms_page_id, not a URL, so the menu survives the page being renamed or translated. Items nest: parent_id is set on create, and the shape and the order are changed with :move afterwards.
path Parameters
website_idId of the parent website.
menu_idThe menu this item belongs to. Fixed by the URL.
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 menu item › 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).
menu_idThe menu this item belongs to. Fixed by the URL.
titleThe text of the link, as the menu renders it.
typeWhat the item points at, which decides which of the fields below is read: TEXT (a heading with no link), URL, CMS_PAGE, RAW_HTML, BLOG, BLOG_CATEGORY, BLOG_AUTHOR, BLOG_POST, BLOG_TAG, FEEDBACK_FORM, CATALOG (the product catalog's listing) or CATALOG_CATEGORY.
urlThe address a URL item points at. Anything else — a page, a category, a post — is linked by its id below, so the URL follows the resource when its slug or its view changes.
cms_page_idThe page a CMS_PAGE item points at.
blog_category_idThe category a BLOG_CATEGORY item points at.
blog_author_idThe author a BLOG_AUTHOR item points at.
blog_post_idThe post a BLOG_POST item points at.
blog_tag_idThe tag a BLOG_TAG item points at.
catalog_category_idThe product category a CATALOG_CATEGORY item points at. The link follows the category's own address in each view, and the item is left out of a view where the category is switched off or hidden.
parent_idThe item this one nests under; empty at the top level. Settable on create and immutable afterwards — re-nesting is :move.
pathThe item's position in the menu tree, as the ids of its ancestors and its own. Server-generated: sending it is an error rather than a no-op.
sort_orderThe item's position among its siblings, and the order the menu renders in. Changed with :move; sending it is an error.
levelHow deep the item sits, counting the top level as 0. Server-generated; sending it is an error.
htmlThe markup a RAW_HTML item renders instead of a link — a language switcher, a badge, a call button.
targetThe link target, when the item should not open in place: _blank for a new tab.
enabledWhether the item is rendered in the menu.
show_subcategoriesFor a BLOG, BLOG_CATEGORY, CATALOG or CATALOG_CATEGORY item: whether the site's header lists the categories (the whole tree, or the item's category's subtree) under the item as a dropdown. Absent counts as on; ignored on other types.
Delete menu item
One entry of a menu. What it points at is type, and type decides which of the target fields is read — a link to a page carries cms_page_id, not a URL, so the menu survives the page being renamed or translated. Items nest: parent_id is set on create, and the shape and the order are changed with :move afterwards.
path Parameters
website_idId of the parent website.
menu_idThe menu this item belongs to. Fixed by the URL.
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 menu item › Responses
Deleted. No body (§7).
Update menu item
One entry of a menu. What it points at is type, and type decides which of the target fields is read — a link to a page carries cms_page_id, not a URL, so the menu survives the page being renamed or translated. Items nest: parent_id is set on create, and the shape and the order are changed with :move afterwards.
path Parameters
website_idId of the parent website.
menu_idThe menu this item belongs to. Fixed by the URL.
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 menu item › Request Body
titleThe text of the link, as the menu renders it.
typeWhat the item points at, which decides which of the fields below is read: TEXT (a heading with no link), URL, CMS_PAGE, RAW_HTML, BLOG, BLOG_CATEGORY, BLOG_AUTHOR, BLOG_POST, BLOG_TAG, FEEDBACK_FORM, CATALOG (the product catalog's listing) or CATALOG_CATEGORY.
urlThe address a URL item points at. Anything else — a page, a category, a post — is linked by its id below, so the URL follows the resource when its slug or its view changes.
cms_page_idThe page a CMS_PAGE item points at.
blog_category_idThe category a BLOG_CATEGORY item points at.
blog_author_idThe author a BLOG_AUTHOR item points at.
blog_post_idThe post a BLOG_POST item points at.
blog_tag_idThe tag a BLOG_TAG item points at.
catalog_category_idThe product category a CATALOG_CATEGORY item points at. The link follows the category's own address in each view, and the item is left out of a view where the category is switched off or hidden.
htmlThe markup a RAW_HTML item renders instead of a link — a language switcher, a badge, a call button.
targetThe link target, when the item should not open in place: _blank for a new tab.
enabledWhether the item is rendered in the menu.
show_subcategoriesFor a BLOG, BLOG_CATEGORY, CATALOG or CATALOG_CATEGORY item: whether the site's header lists the categories (the whole tree, or the item's category's subtree) under the item as a dropdown. Absent counts as on; ignored on other types.
Update menu item › 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).
menu_idThe menu this item belongs to. Fixed by the URL.
titleThe text of the link, as the menu renders it.
typeWhat the item points at, which decides which of the fields below is read: TEXT (a heading with no link), URL, CMS_PAGE, RAW_HTML, BLOG, BLOG_CATEGORY, BLOG_AUTHOR, BLOG_POST, BLOG_TAG, FEEDBACK_FORM, CATALOG (the product catalog's listing) or CATALOG_CATEGORY.
urlThe address a URL item points at. Anything else — a page, a category, a post — is linked by its id below, so the URL follows the resource when its slug or its view changes.
cms_page_idThe page a CMS_PAGE item points at.
blog_category_idThe category a BLOG_CATEGORY item points at.
blog_author_idThe author a BLOG_AUTHOR item points at.
blog_post_idThe post a BLOG_POST item points at.
blog_tag_idThe tag a BLOG_TAG item points at.
catalog_category_idThe product category a CATALOG_CATEGORY item points at. The link follows the category's own address in each view, and the item is left out of a view where the category is switched off or hidden.
parent_idThe item this one nests under; empty at the top level. Settable on create and immutable afterwards — re-nesting is :move.
pathThe item's position in the menu tree, as the ids of its ancestors and its own. Server-generated: sending it is an error rather than a no-op.
sort_orderThe item's position among its siblings, and the order the menu renders in. Changed with :move; sending it is an error.
levelHow deep the item sits, counting the top level as 0. Server-generated; sending it is an error.
htmlThe markup a RAW_HTML item renders instead of a link — a language switcher, a badge, a call button.
targetThe link target, when the item should not open in place: _blank for a new tab.
enabledWhether the item is rendered in the menu.
show_subcategoriesFor a BLOG, BLOG_CATEGORY, CATALOG or CATALOG_CATEGORY item: whether the site's header lists the categories (the whole tree, or the item's category's subtree) under the item as a dropdown. Absent counts as on; ignored on other types.
Move (menu item)
Re-nests or reorders one menu item. Send {"parent_id": ..., "after_id": ...}: parent_id absent or null means the top level, after_id absent or null means first among its new siblings. This is the only call that may change an item's place — parent_id, path, level and sort_order are all rejected on Update, because moving is what recomputes them.
path Parameters
website_idId of the parent website.
menu_idId of the parent menu.
idId of the items resource this URL addresses.
Move (menu item) › Request Body optional
Move (menu item) › Responses
The affected resource, or the method’s own response object (§10).
List menu item views
What one view says instead of the master menu item: its text, its URL, its raw markup and whether it is shown at all. What the item points at and where it sits in the menu are not overridable.
path Parameters
website_idId of the parent website.
menu_idId of the parent menu.
item_idId of the parent item.
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 menu item 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 menu item view
What one view says instead of the master menu item: its text, its URL, its raw markup and whether it is shown at all. What the item points at and where it sits in the menu are not overridable.
path Parameters
website_idId of the parent website.
menu_idId of the parent menu.
item_idId of the parent item.
Create menu item view › Request Body
overriddenThe names of the fields this view actually overrides. A field not listed here falls back to the item.
titleThis view's text for the link.
urlThis view's address for a URL item.
htmlThis view's markup for a RAW_HTML item.
enabledWhether this view renders the item at all — the one way to hide a single link in one view.
Create menu item 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).
menu_item_idThe menu item 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. A field not listed here falls back to the item.
titleThis view's text for the link.
urlThis view's address for a URL item.
htmlThis view's markup for a RAW_HTML item.
enabledWhether this view renders the item at all — the one way to hide a single link in one view.
Get menu item view
What one view says instead of the master menu item: its text, its URL, its raw markup and whether it is shown at all. What the item points at and where it sits in the menu are not overridable.
path Parameters
website_idId of the parent website.
menu_idId of the parent menu.
item_idId of the parent item.
view_idThe view this overlay speaks for. Fixed by the URL.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get menu item 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).
menu_item_idThe menu item 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. A field not listed here falls back to the item.
titleThis view's text for the link.
urlThis view's address for a URL item.
htmlThis view's markup for a RAW_HTML item.
enabledWhether this view renders the item at all — the one way to hide a single link in one view.
Delete menu item view
What one view says instead of the master menu item: its text, its URL, its raw markup and whether it is shown at all. What the item points at and where it sits in the menu are not overridable.
path Parameters
website_idId of the parent website.
menu_idId of the parent menu.
item_idId of the parent item.
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 menu item view › Responses
Deleted. No body (§7).
Update menu item view
What one view says instead of the master menu item: its text, its URL, its raw markup and whether it is shown at all. What the item points at and where it sits in the menu are not overridable.
path Parameters
website_idId of the parent website.
menu_idId of the parent menu.
item_idId of the parent item.
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 menu item view › Request Body
overriddenThe names of the fields this view actually overrides. A field not listed here falls back to the item.
titleThis view's text for the link.
urlThis view's address for a URL item.
htmlThis view's markup for a RAW_HTML item.
enabledWhether this view renders the item at all — the one way to hide a single link in one view.
Update menu item 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).
menu_item_idThe menu item 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. A field not listed here falls back to the item.
titleThis view's text for the link.
urlThis view's address for a URL item.
htmlThis view's markup for a RAW_HTML item.
enabledWhether this view renders the item at all — the one way to hide a single link in one view.