Skip to main content
PUT
Update an ingredient

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique ingredient identifier, generated when the ingredient was created.

Body

application/json

The request body to update one or more ingredient requires only the properties to be updated.

name
string

The ingredient name to display in the client app.

Example:

"Carrot"

in_stock_qty
integer

The quantity of the ingredient currently in stock. This field is used to track the ingredient inventory. If the ingredient is essential and has a value of 0, the associated dish cannot be ordered via the client app.

Example:

3

price
number<float>

The price used by the client app to calculate order cost.

Example:

999

Response

Ingredient successfully updated