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/:externalIdThe 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. kindstringoptionalREGULAR(default),SPECIAL_OFFER,COMBOorPACKAGE.regularPriceinteger | nulloptionalSPECIAL_OFFERonly, and required for it: the price before the offer. Must be higher thanprice.offerEndsAtstring | nulloptionalSPECIAL_OFFERonly. ISO 8601.combinesWithOffersbooleanoptionalSPECIAL_OFFERonly.includesstring | nulloptionalCOMBOorPACKAGEonly: 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.
nullmeans 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.urlishttps;labelup to 30 characters.
Response
dryRunbooleanrequiredtruefor a sandbox key: nothing was saved.createdbooleanrequired- Whether this
PUTcreated the item. dataobjectrequired- The item: every body field, plus
externalId,id(Localoy's,nullin a sandbox create),publishedandupdatedAt.
Errors#
| Status | Code | When |
|---|---|---|
400 | unknown_field, <field>_required, <field>_invalid, <field>_too_long, <field>_too_many | A field is missing or wrong. details.field names it. |
400 | offer_not_cheaper, regularPrice_required, offer_fields_need_special_offer, includes_needs_combo | An offer or combo rule. |
400 | image_not_imported | image is not a URL from POST /media. |
400 | location_not_found | A locationIds entry is not one of your locations. |
400 | externalId_invalid | The externalId has other characters or is too long. |
403 | provider_module_not_allowed | A provider without the Dining module. |
409 | dining_not_set_up | You have no dining listing yet. |
409 | resource_busy | Another request is creating this externalId. Retry. |
409 | resource_managed_elsewhere | A 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"
}
}