PUT
/
ingredients
/
{id}
curl --request PUT \
  --url https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/ingredients/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Carrot",
  "in_stock_qty": 3,
  "price": 999
}'
This response does not have an example.

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.

The body is of type object.

Response

200

Ingredient successfully updated

PUT
/
ingredients
/
{id}
curl --request PUT \
  --url https://reimagined-journey-g45xxv4v6gwhvrrr-80.app.github.dev/ingredients/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Carrot",
  "in_stock_qty": 3,
  "price": 999
}'
This response does not have an example.

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.

The body is of type object.

Response

200

Ingredient successfully updated