Types > MenuItemCreate
Commerce APITypesMenuItemCreate
MenuItemCreate

Description

Fields

category_id: String

Unique category identifier. See also: Unique Identifiers

Example: "ca_EQzGqWoY"

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

Valid when: category_id matches regexp pattern: ^ca_


content_block_id: String

Unique content block identifier. See also: Unique Identifiers

Example: "bl_EQzGqWoY"

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

Valid when: content_block_id matches regexp pattern: ^bl_


id: String

Unique menu item identifier. See also: Unique Identifiers

Example: "mi_EQzGqWoY"


link: String

HTTP(S) link

Example: "https://google.com"

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


meta: String

Arbitrary text value for meta type

Example: "home"

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


name: String!

Name of the menu item

Translatable

Example: "T-Shirts"

Valid when: name is not empty

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


parent_index: Int

Index of the parent item if any

Example: 0


product_id: String

Unique product identifier. See also: Unique Identifiers

Example: "pd_EQzGqWoY"

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

Valid when: product_id matches regexp pattern: ^pd_


query: String

Search query

Example: "?type=category"

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


type: MenuItemType!

Type of the menu item


Used By

Types

MenuCreate, MenuModify

Preview (typescript)

Loading module