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

Add a tab to an online menu

POST/v1/sites/{siteId}/menus/{code}/tabs

Adds a tab, after the menu's others, with the products on it. The response is the whole menu.

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

  • Idempotency-Key

    A value you choose, unique to what this request creates: a UUID, or your own id for it. Sending it again with the same body returns the first response and creates nothing more. Required.

    string · at most 255 characters

Body

  • namerequired

    The tab's name.

    string · 1–100 characters

  • products

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

    array of string

Responses

201 Created

  • 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