Skip to main content

Update a menu

PUT 

/api/v2/catalog/menus/:menu_id

Update a menu by its id

Request

Path Parameters

    menu_id stringrequired

    Possible values: >= 12 characters and <= 12 characters, Value must match regular expression ^[0-9a-z]+$

    Unique ID of the menu

    Example: 4lj8y3ygw1w0

Body

required

    name string

    Possible values: non-empty

    Name of the menu

    photo_url urinullable

    The photo URL of the menu

    announcement stringnullable

    Text to display in the announcement bar, implicitly enables the announcement bar.

    heading stringnullable

    Heading of the menu

    available boolean

    Default value: true

    Mark the product as not available

    description string

    Description of the menu

    colors

    object

    primary color-hex

    Primary color of the menu

    layout integer

    Possible values: <= 2

    Default value: 0

    Layout of the menu

    order integer

    Default value: 0

    Used to order the item, order defaults to ascending.

Responses

Schema

    id stringrequired

    Possible values: >= 12 characters and <= 12 characters, Value must match regular expression ^[0-9a-z]+$

    Unique ID of the menu

    name stringrequired

    Possible values: non-empty

    Name of the menu

    slug stringrequired

    Possible values: non-empty

    Slug of the menu

    description stringrequired

    Description of the menu

    photo_url urinullable

    The photo URL of the menu

    announcement stringnullable

    Text to display in the announcement bar, implicitly enables the announcement bar.

    heading stringnullable

    Heading of the menu

    colors

    object

    required

    primary color-hex

    Primary color of the menu

    layout integerrequired

    Possible values: <= 2

    Default value: 0

    Layout of the menu

    available boolean

    Default value: true

    Mark the product as not available

    order integerrequired

    Default value: 0

    Used to order the item, order defaults to ascending.

    created_at date-timerequired
    updated_at date-timerequired
Loading...