Skip to main content
PUT
/
foods
/
{id}
Update a food
curl --request PUT \
  --url https://api.salesive.com/api/v1/foods/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "price": 13,
  "available": false
}
'
{
  "status": 200,
  "success": true,
  "message": "Update a food",
  "data": {
    "_id": "66a2a1c4e1b3a40012cd1001",
    "name": "Margherita Pizza",
    "description": "Tomato, mozzarella, basil",
    "price": 13,
    "promoPrice": null,
    "images": [
      "https://cdn.salesive.com/f/margherita.jpg"
    ],
    "category": "66a2a0aae1b3a40012cd0001",
    "available": false,
    "listed": true,
    "addons": [],
    "shop": "66a1eee0e1b3a40012ab0001",
    "updatedAt": "2026-06-28T09:25:00.000Z"
  }
}
Updates a food item in the store. Supplied fields overwrite the existing values. Requires the WRITE_INVENTORY scope.

Authorizations

Authorization
string
header
required

Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.

Path Parameters

id
string
required

ObjectId of the food item to update.

Body

application/json
name
string

Food name (max 100 chars).

price
number

Price (>= 0).

description
string

Food description.

promoPrice
number | null

Promotional price (>= 0); nullable.

images
string[]

Array of image URLs.

video
string | null

Video URL; nullable.

category
string | null

Category ObjectId; nullable.

available
boolean

Whether the item is available to order.

listed
boolean

Whether the item is listed on the menu.

addons
object[]

Add-ons array (replaces existing). Each: name (required), price (required), maxQuantity, image, available, description.

Response

Update a food — success.

status
integer
required
Example:

200

success
boolean
required
Example:

true

message
string
required
Example:

"Update a food"

data
object
required

A restaurant menu item.

Example:
{
"_id": "66a2a1c4e1b3a40012cd1001",
"name": "Margherita Pizza",
"description": "Tomato, mozzarella, basil",
"price": 13,
"promoPrice": null,
"images": ["https://cdn.salesive.com/f/margherita.jpg"],
"category": "66a2a0aae1b3a40012cd0001",
"available": false,
"listed": true,
"addons": [],
"shop": "66a1eee0e1b3a40012ab0001",
"updatedAt": "2026-06-28T09:25:00.000Z"
}