Update menu
Update a menu and menu items in a project.
Path parameters
The ID of the menu to update.
Body parameters
The name of the menu.
The list of items in the menu.
The label for the menu item.
The URL for the menu item.
Whether the menu item is active or not.
Whether the menu item should open in a new tab or not.
Response
import Blutui from 'blutui'
const blutui = new Blutui('ey....')
blutui.project('one').admin.menus.update('9a5b0b29-a4f8-4df6-bf53-f282af312686', {
  name: 'Primary Menu',
}){
  "id": "9a5b0b29-a4f8-4df6-bf53-f282af312686",
  "object": "menu",
  "name": "Primary Menu",
  "handle": "primary-menu",
  "items": [
    {
      "id": "9a5b0b29-a5f4-4171-b50f-d0f6b61730e6",
      "object": "menu_item",
      "label": "About",
      "url": "/about",
      "active": true,
      "is_new_tab": false,
      "order": 0,
      "items": [],
      "created_at": "2023-10-13T13:49:59+13:00",
      "updated_at": "2023-10-13T13:49:59+13:00"
    }
  ],
  "created_at": "2023-10-13T13:49:59+13:00",
  "updated_at": "2023-10-13T13:49:59+13:00"
}The unique identifier for this menu.
This will always contain menu for this endpoint.
The name of this menu.
The unique slug for this menu.
The items of this menu.
The unique identifier for the menu item.
This will always contain menu_item.
This label for the menu item.
The URL for the menu item.
Whether the menu item is active or not.
Whether the menu item should open in a new tab or not.
The order of the menu item in the list.
The submenu items for this menu item.
The menu item's created at timestamp.
The menu item's created at timestamp.
The menu's created at timestamp.
The menu's updated at timestamp.
Last updated on