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 · Modifiers

Update a pre-modifier group

PATCH/v1/sites/{siteId}/pre-modifier-groups/{code}

Changes a pre-modifier group. Only the fields sent change. Nothing is deleted: retire it with active false.

Needs Catalogue: writeChanges live data

Path

  • siteIdrequired

    The site, from GET /v1/sites.

    string

  • coderequired

    The record'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

  • options

    Replaces its options, in order.

    array of objects

    4 fields in each
    • displayNamerequired

      What the till shows.

      string · 1–100 characters

    • priceChange

      Added to the item's price, in minor units. 0 for free.

      integer

    • pricePercent

      Or a percentage of the item's price, instead of priceChange.

      number · double

    • printName

      What the kitchen ticket says. Defaults to displayName.

      string · at most 100 characters

Responses

200 OK

  • activerequired

    False for a retired group.

    boolean

  • coderequired

    The group's code.

    string

  • namerequired

    The group's name.

    string

  • optionsrequired

    Its options, in order.

    array of objects

    5 fields in each
    • coderequired

      The option's code.

      string

    • displayNamerequired

      What the till shows.

      string

    • priceChangerequired

      Added to the item's price, in minor units. 0 is free.

      integer

    • pricePercent

      Or a percentage of the item's price: 50 is half as much again.

      number · double

    • printName

      What the kitchen ticket says, when it differs.

      string

  • updatedAt

    When it last changed.

    string · date-time