Create a menu
An empty menu; add its items with PUT /{id}/items.
Create a menu › Request Body
handle^[a-z0-9][a-z0-9-]{0… · requiredLowercase letters, digits and hyphens; how a theme names the menu
titleCreate a menu › Responses
The new menu
successFind what a menu item can point at
Up to 20 products, categories, store pages or landing pages whose name or slug contains q, each with its public path and whether shoppers can see it now.
query Parameters
typeqPart of the name or slug
Part of the name or slug
Find what a menu item can point at › Responses
Matching destinations
successGet a menu
A menu with its item tree. Each item says whether shoppers can follow it (destinationStatus).
path Parameters
idMenu id
Menu id
Get a menu › Responses
The menu
successRename a menu
Changes its title or handle. A theme reads a menu by handle, so a new handle moves the menu out of every theme setting that named the old one.
path Parameters
idMenu id
Menu id
Rename a menu › Request Body
handle^[a-z0-9][a-z0-9-]{0…Lowercase letters, digits and hyphens; how a theme names the menu
titleRename a menu › Responses
The menu
successSave a menu's items
Replaces the menu's items with this tree, at once. An item sent with its id keeps it and its translations; an item left out is deleted. At most three levels and 100 items.
path Parameters
idMenu id
Menu id
Save a menu's items › Request Body
The whole tree, in order; at most three levels and 100 items
Save a menu's items › Responses
The menu as saved
successGet a menu item's translations
The translatable fields in the store's primary language and every stored translation, each flagged outdated when its source text changed after it was written.
path Parameters
idGet a menu item's translations › Responses
Source and translations
successTranslate a menu item into one language
A JSON Merge Patch (RFC 7396) of one language: a string sets a field, null removes its translation, other fields are untouched. The language must be one the store has added, and not its primary — the resource's own fields hold that.
path Parameters
idTranslate a menu item into one language › Request Body
localeTranslate a menu item into one language › Responses
Source and translations after the patch
success