---
title: "Update a meal record"
method: PATCH
path: "/diaries/{diaryId}/entries/{entryId}/meals/{mealId}"
tags: ["Legacy (v1-compat)"]
---

# Update a meal record

`PATCH /diaries/{diaryId}/entries/{entryId}/meals/{mealId}`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/diaries/{diaryId}/entries/{entryId}/meals/{mealId}`
- Auth: HTTP bearer

## Path parameters

- `diaryId` string, uuid, required
- `entryId` string, uuid, required
- `mealId` string, uuid, required

## Request body

- CompatUpdateMealRequest
  - `title` string, nullable
  - `description` string
  - `recipe` string, nullable
  - `price` number, nullable

## Response `200`

OK

- CompatMeal
  - `id` string, required
  - `entryId` string, uuid, required
  - `authorId` unknown, required
  - `url` string, required
  - `title` string, nullable, required
  - `description` string, required
  - `recipe` string, nullable, required
  - `price` number, nullable, required
  - `createdAt` string, date-time, required

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
