---
title: "Gets change logs for the meal and all meal items of this meal"
method: GET
path: "/patients/{patient_id}/meals/{meal_id}/change-logs"
tags: ["meal"]
---

# Gets change logs for the meal and all meal items of this meal

`GET /patients/{patient_id}/meals/{meal_id}/change-logs`

## Path parameters

- `patient_id` integer, required
- `meal_id` integer, required

## Response `200`

successful operation

- MealChangeLogResponse
  - `changes` ChangeLogItem[]
    - `change_type` 'create' | 'update' | 'delete', required
    - `id` integer, required
    - `item_id` string, required — The id of the changed item.
    - `item_type` string, required — The type of item that was changed (ie, the database table name).
    - `new` object — new field values (ex, {"name": "new name"}). Null if change_type is delete.
    - `old` object — old field values (ex, {"name": "old name"}). Null if change_type is create.
    - `timestamp` string, date-time, required
    - `timestamp_wall` string, date-time
    - `user_email` string — The email of the user who made the change.
    - `user_id` integer — The id of the user who made the change.
    - `user_name` string — The name of the user who made the change.
  - `meal_id` integer

---

[API](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server.md) · [All operations](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/llms.txt) · [OpenAPI document](https://skmtc.dev/rxfoodapp/apis/inneranalytics-mnt-server/revisions/c17aca2782f6?raw)
