---
title: "Update a meal (e.g., add/change image, notes)"
method: PUT
path: "/api/meals/{id}"
tags: ["Meals"]
---

# Update a meal (e.g., add/change image, notes)

`PUT /api/meals/{id}`

## Request

- Base URL: `https://api.hiyd.ai`
- URL: `https://api.hiyd.ai/api/meals/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `meal_name` string
  - `notes` string
  - `image_url` string
  - `location` string
  - `difficulty` 'easy' | 'medium' | 'hard'
  - `prep_time_minutes` number
  - `cook_time_minutes` number
  - `total_time_minutes` number
  - `rating` number
  - `ingredients` string[]

## Response `200`

Meal updated successfully

---

[API](https://skmtc.dev/hiyd/apis/hiyd-backend-api.md) - [All operations](https://skmtc.dev/hiyd/apis/hiyd-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hiyd/apis/hiyd-backend-api/revisions/23598d347e1b?raw)
