Skip to content
Developers
Pilot. The API is open to a small number of organisations and may change — every change is in the changelog.

Reference · Menus

Update an online menu

PATCH/v1/sites/{siteId}/menus/{code}

Renames an online menu, changes the order types it serves, or retires it. Only the fields sent change.

Needs Catalogue: writeChanges live data

Path

  • siteIdrequired

    The site, from GET /v1/sites.

    string

  • coderequired

    The menu's code.

    string

Headers

  • Authorizationrequired

    An API key from Automation > Access in the Dnero portal, sent as Authorization: Bearer <key>.

    string

Body

  • active

    False to retire it, true to bring it back.

    boolean

  • name

    A new name.

    string · 1–200 characters

  • orderTypes

    Replaces the order types it serves, by code.

    array of string

Responses

200 OK

  • activerequired

    False for a retired menu.

    boolean

  • coderequired

    The menu's code.

    string

  • namerequired

    The menu's name, as customers see it.

    string

  • orderrequired

    Where it sits among the site's menus, lowest first.

    integer

  • orderTypesrequired

    The order types it serves, by code: a menu serving none appears nowhere.

    array of string

  • tabsrequired

    Its tabs, in order.

    array of objects

    5 fields in each
    • coderequired

      The tab's code, within its menu.

      string

    • namerequired

      The tab's name.

      string

    • productsrequired

      The products on the tab, by code, in order.

      array of string

    • hoverImageUrl

      The picture shown under the cursor.

      string · uri

    • imageUrl

      The tab's picture.

      string · uri

  • updatedAt

    When it last changed.

    string · date-time