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

# Add a meal record

`POST /diaries/{diaryId}/entries/{entryId}/meals`

## Request

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

## Path parameters

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

## Request body

- CompatCreateMealRequest
  - `s3Key` string, required
  - `description` string
  - `title` string, nullable
  - `recipe` string, nullable
  - `price` number, nullable

## Response `201`

Created

- 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

---

[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)
