Content > Menus > menusCreate
Commerce APIContentMenusmenusCreate
menusCreate
POST:menus.json

Description

Create one ore more menus.

Permission bit: "menus.create"

Topic: Menus

Arguments

data: [MenuCreate!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

custom_fields: [CustomFieldCreate!]


handle: String

Menu handle (you can lookup menu using a handle)

Example: "footer"

Valid when: handle's length doesn't exceed 250 characters


items: [MenuItemCreate!]

Menu items


name: String!

Menu name

Example: "Footer"

Valid when: name is not empty

Valid when: name's length doesn't exceed 250 characters


Result

[Menu!]

Preview (typescript)

Loading module