PUT
/
dishes
/
{id}
{
  "id": "674d0bf5c28b69001f8e03a1",
  "created_at": "2024-04-22T10:00:00Z",
  "name": "Risotto alla Milanese",
  "description": "A description of the resource.",
  "category": "Main Course",
  "image_name": "burger",
  "ingredients": [
    {
      "ingredient_id": "66294b2a4475a41f3e709bc5",
      "is_essential": true
    },
    {
      "ingredient_id": "66294b2a4475a41f3e709bc6",
      "is_essential": true
    },
    {
      "ingredient_id": "66294b2a4475a41f3e709bc7",
      "is_essential": false
    }
  ],
  "preparation_time": 999,
  "price": 999,
  "station": "hot"
}

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 dish identifier, generated when the dish was created.

Body

application/json

The request body to update a dish requires only the properties to be updated.

The body is of type object.

Response

200
application/json

Dish updated successfully

The response is of type object.