Create or replace a menu item

Create a menu item on your dining listing, or replace it, by your own ID.

PUT{BASE_URL}/menu/items/:externalId

The first PUT of an externalId creates the item as a draft (201); later ones replace it (200). Send the whole item: an option you leave out goes back to its default. Requires the REGISTRATION scope; a Technology Provider also needs the Dining module. See Sync your listings.

externalId is 1–128 letters, digits or . _ ~ : -.

Body

namestringrequired
1–120 characters.
priceintegeroptional
Whole taka, 0–1,000,000. Required unless you send sizes, which set the price to the cheapest size.
categorystringrequired
The menu section, 1–60 characters. New ones are added to your menu.
descriptionstring | nulloptional
Up to 2,000 characters.
imagestring | nulloptional
A URL from POST /media.
timeToServestring | nulloptional
Free text, for example 20 min. Up to 40 characters.
kindstringoptional
REGULAR (default), SPECIAL_OFFER, COMBO or PACKAGE.
regularPriceinteger | nulloptional
SPECIAL_OFFER only, and required for it: the price before the offer. Must be higher than price.
offerEndsAtstring | nulloptional
SPECIAL_OFFER only. ISO 8601.
combinesWithOffersbooleanoptional
SPECIAL_OFFER only.
includesstring | nulloptional
COMBO or PACKAGE only: what is included. Up to 500 characters.
sizesobject[]optional
Up to 10 { name, price }.
addOnsobject[]optional
Up to 20 { name, price }.
requiredChoicesobject[]optional
Up to 5 { question, options[] }, each with up to 12 options.
tagsstring[]optional
Up to 10.
orderTimesstring | nulloptional
When it can be ordered, in words. Up to 80 characters. null means all day.
soldOutbooleanoptional
Defaults to false.
locationIdsstring[]optional
IDs from GET /locations. Empty means every location.
linkobject | nulloptional
{ url, label }: send customers to your own page instead of ordering on Localoy. url is https; label up to 30 characters.

Response

dryRunbooleanrequired
true for a sandbox key: nothing was saved.
createdbooleanrequired
Whether this PUT created the item.
dataobjectrequired
The item: every body field, plus externalId, id (Localoy's, null in a sandbox create), published and updatedAt.

Errors#

StatusCodeWhen
400unknown_field, <field>_required, <field>_invalid, <field>_too_long, <field>_too_manyA field is missing or wrong. details.field names it.
400offer_not_cheaper, regularPrice_required, offer_fields_need_special_offer, includes_needs_comboAn offer or combo rule.
400image_not_importedimage is not a URL from POST /media.
400location_not_foundA locationIds entry is not one of your locations.
400externalId_invalidThe externalId has other characters or is too long.
403provider_module_not_allowedA provider without the Dining module.
409dining_not_set_upYou have no dining listing yet.
409resource_busyAnother request is creating this externalId. Retry.
409resource_managed_elsewhereA provider wrote an externalId another integration holds.
cURL
curl -X PUT "$LOCALOY_BASE_URL/menu/items/sku-4471" \
  -H "Authorization: Bearer $LOCALOY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Kacchi Biryani",
    "category": "Biryani",
    "image": "https://…/open_network/2026-11-10/6f1c….webp",
    "sizes": [
      { "name": "Half", "price": 260 },
      { "name": "Full", "price": 450 }
    ],
    "addOns": [{ "name": "Borhani", "price": 80 }],
    "tags": ["Signature"]
  }'
Response · 201
{
  "success": true,
  "message": "Menu item created as a draft — publish it to show it to customers",
  "dryRun": false,
  "created": true,
  "data": {
    "externalId": "sku-4471",
    "id": "cm4m3nu1t3m0000000000001",
    "name": "Kacchi Biryani",
    "price": 260,
    "category": "Biryani",
    "description": null,
    "image": "https://…/open_network/2026-11-10/6f1c….webp",
    "timeToServe": null,
    "kind": "REGULAR",
    "regularPrice": null,
    "offerEndsAt": null,
    "combinesWithOffers": false,
    "includes": null,
    "sizes": [
      { "name": "Half", "price": 260 },
      { "name": "Full", "price": 450 }
    ],
    "addOns": [{ "name": "Borhani", "price": 80 }],
    "requiredChoices": [],
    "tags": ["Signature"],
    "orderTimes": null,
    "soldOut": false,
    "locationIds": [],
    "link": null,
    "published": false,
    "updatedAt": "2026-11-10T09:30:00.000Z"
  }
}