TrellisDevelopers

Quick Edit

POST
/catalog/quick-edit/bulk

Bulk update item stock status, quantities, and menu availability. Supports manager overrides, audit logging, and immediate inventory and kitchen propagation.

Header Parameters

x-tenant-id?string

Selects the tenant by id. When both tenant headers are omitted, the server falls back to the configured default tenant slug.

x-tenant-slug?string

Selects the tenant by slug. Use this when you know the tenant slug instead of the tenant id.

x-location-id?string

Adds a location scope to the request for location-aware reads, writes, and audit entries.

x-auth-provider?"hexclave"

Test-only Hexclave provider identifier used with x-auth-user-id when trusted identity headers are explicitly enabled. Production clients must use a Hexclave bearer token.

Value in

  • "hexclave"
x-auth-user-id?string

Temporary auth subject used to resolve the acting staff user through the staff auth identity mapping.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/catalog/quick-edit/bulk" \  -H "x-tenant-id: tenant-local" \  -H "x-tenant-slug: trellis-local" \  -H "x-location-id: loc-tasting-room" \  -H "x-auth-provider: hexclave" \  -H "x-auth-user-id: user_abc123" \  -H "Content-Type: application/json" \  -d '{    "locationId": "string"  }'
{  "authorization": {    "mode": "disabled",    "actorRoles": [      "string"    ],    "overrideStaffUserId": "string",    "overrideRoles": [      "string"    ]  },  "products": [    {      "id": "string",      "internalKey": "string",      "barcode": "string",      "sku": "string",      "title": "string",      "description": "string",      "posLabel": "string",      "kitchenLabel": "string",      "buttonColor": {        "light": "string",        "dark": "string"      },      "imageUrl": "string",      "imageUrls": [        "string"      ],      "tags": [        {          "id": "string",          "name": "string"        }      ],      "salesCategory": "string",      "plu": "string",      "calories": 0,      "nutrition": {        "calories": 0      },      "unitOfMeasure": "string",      "guestCount": 0,      "dimensions": {        "length": 0,        "width": 0,        "height": 0,        "unit": "string"      },      "weight": {        "value": 0,        "unit": "string"      },      "sortOrder": 0,      "discountable": true,      "deferredRevenue": true,      "contentAdvisories": {        "containsAlcohol": true      },      "taxRateIds": [        "string"      ],      "overrideItemTaxRates": true,      "kind": "restaurant_menu_item",      "status": "draft",      "category": "string",      "price": 0,      "pricingStrategy": "base",      "taxCode": "food",      "modifierGroupIds": [        "string"      ],      "trackInventory": true,      "availableLocationIds": [        "string"      ],      "visibility": {        "pos": true,        "online": true,        "kiosk": true,        "partners": true      },      "prepTimeSeconds": 0,      "portionIds": [        "string"      ],      "sizePricing": [        {          "sizeName": "string",          "price": 0        }      ],      "stockState": {        "mode": "in_stock",        "quantityRemaining": 0,        "locations": [          {            "locationId": "string",            "mode": "in_stock",            "quantityRemaining": 0          }        ]      },      "routing": {        "prepStationIds": [          "string"        ],        "assemblyLineId": "string",        "modifierRouting": "inherit",        "ticketDestination": "prep_only"      },      "metadata": {        "property1": null,        "property2": null      },      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "menus": [    {      "id": "string",      "title": "string",      "icon": "string",      "description": "string",      "posLabel": "string",      "buttonColor": {        "light": "string",        "dark": "string"      },      "imageUrl": "string",      "highResImageUrl": "string",      "serviceType": "restaurant",      "locationIds": [        "string"      ],      "productIds": [        "string"      ],      "modifierGroups": [        {          "id": "string",          "title": "string",          "posLabel": "string",          "buttonColor": {            "light": "string",            "dark": "string"          },          "minSelections": 0,          "maxSelections": 0,          "sortOrder": 0,          "modifierProductIds": [            "string"          ],          "requiredMode": "REQUIRED",          "behavior": "required",          "pricingStrategy": "no_charge",          "groupPrice": 0,          "sizePrices": [            {              "sizeName": "string",              "price": 0,              "modifierPrices": [                {                  "modifierProductId": "string",                  "price": 0                }              ]            }          ],          "sequencePrices": [            {              "ordinal": 1,              "price": 0            }          ],          "sizeSequencePrices": [            {              "sizeName": "string",              "sequencePrices": [                {                  "ordinal": 1,                  "price": 0                }              ]            }          ],          "defaultModifierProductIds": [            "string"          ],          "allowDuplicates": true,          "maxDuplicateQuantity": 1,          "perModifierDuplicateLimits": [            {              "modifierProductId": "string",              "allowDuplicates": true,              "maxQuantity": 1            }          ],          "preModifierGroupId": "string",          "displayOrder": "listed",          "visibility": {            "pos": true,            "online": true,            "kiosk": true,            "partners": true          },          "prepMode": "integral",          "prepTimeSeconds": 0,          "defaultModifierPricingMode": "charge",          "enableSubstitutionPricing": true,          "sizeSelectionMode": "inherit_parent",          "portionIds": [            "string"          ],          "modifierItemReferences": [            {              "productId": "string",              "overrideName": "string",              "overrideBasePrice": 0,              "pricingStrategy": "base",              "menuPrices": [                {                  "menuId": "string",                  "price": 0                }              ],              "locationPrices": [                {                  "locationId": "string",                  "price": 0                }              ],              "sizePrices": [                {                  "sizeName": "string",                  "price": 0                }              ],              "timePrices": [                {                  "days": [                    "mon"                  ],                  "startTime": "string",                  "endTime": "string",                  "price": 0                }              ]            }          ],          "routing": {            "prepStationIds": [              "string"            ],            "assemblyLineId": "string",            "modifierRouting": "inherit",            "ticketDestination": "prep_only"          },          "basedOnMenuGroupId": "string",          "metadata": {            "property1": null,            "property2": null          }        }      ],      "groups": [        {          "id": "string",          "title": "string",          "icon": "string",          "subgroupIds": [            "string"          ],          "productIds": [            "string"          ],          "description": "string",          "posLabel": "string",          "buttonColor": {            "light": "string",            "dark": "string"          },          "imageUrl": "string",          "tags": [            {              "id": "string",              "name": "string"            }          ],          "visibility": {            "pos": true,            "online": true,            "kiosk": true,            "partners": true          },          "routing": {            "prepStationIds": [              "string"            ],            "assemblyLineId": "string",            "modifierRouting": "inherit",            "ticketDestination": "prep_only"          },          "sortOrder": 0        }      ],      "preModifierGroups": [        {          "id": "string",          "title": "string",          "options": [            {              "id": "string",              "label": "string",              "posLabel": "string",              "buttonColor": {                "light": "string",                "dark": "string"              },              "position": "prefix",              "fixedPrice": 0,              "multiplicationFactor": 0,              "chargeAsExtra": true,              "plu": "string"            }          ]        }      ],      "portions": [        {          "id": "string",          "label": "string",          "posLabel": "string",          "priceMultiplier": 0,          "modifierGroupIds": [            "string"          ]        }      ],      "availability": [        {          "days": [            "mon"          ],          "startTime": "string",          "endTime": "string"        }      ],      "eligibility": {        "fulfillmentModes": [          "dine_in"        ],        "serviceModes": [          "table_service"        ],        "diningOptions": [          {            "behavior": "DINE_IN",            "curbside": true          }        ],        "dayparts": [          {            "id": "string",            "label": "string",            "availability": [              {                "days": [                  "mon"                ],                "startTime": "string",                "endTime": "string"              }            ]          }        ]      },      "visibility": {        "pos": true,        "online": true,        "kiosk": true,        "partners": true      },      "kitchen": {        "prepStations": [          {            "id": "string",            "title": "string",            "supportedFulfillmentModes": [              "dine_in"            ],            "fulfillmentTargets": [              "prep"            ],            "printingMode": "always",            "printerId": "string",            "expediterRouting": "send_to_expediter",            "connectedPrepStationIds": [              "string"            ]          }        ],        "assemblyLines": [          {            "id": "string",            "title": "string",            "prepStationIds": [              "string"            ]          }        ],        "itemRoutingRules": [          {            "id": "string",            "conditionType": "fulfillment_mode",            "conditionValue": "string",            "rerouteFromPrepStationId": "string",            "rerouteToPrepStationIds": [              "string"            ]          }        ],        "defaultModifierRouting": "with_parent",        "kdsTicketMode": "single_ticket",        "consolidateIdenticalItems": true,        "showOtherPrepStations": true,        "previewTickets": true,        "fireItemsByPrepTime": true,        "sendingCourses": "send_all_immediately",        "expediterCanFireAhead": true,        "heldTicketsVisibleOnPrep": true,        "kdsAppearance": {          "ticketLayout": "dynamic",          "rows": 1,          "columns": 1,          "textSize": "small",          "displayTheme": "light"        },        "courseFireSchedule": [          {            "course": "string",            "delaySeconds": 0          }        ]      },      "metadata": {        "property1": null,        "property2": null      },      "active": true    }  ],  "inventorySync": [    {      "productId": "string",      "inventoryItemId": "string",      "locationId": "string",      "onHand": 0,      "reserved": 0,      "available": 0,      "action": "Reset"    }  ],  "affectedOpenOrders": [    {      "orderId": "string",      "orderNumber": 0,      "status": "string",      "matchingProductIds": [        "string"      ]    }  ]}