---
title: "Update an existing recipe"
method: PATCH
path: "/api/cookbook/recipes/{id}"
tags: ["Cookbook"]
---

# Update an existing recipe

`PATCH /api/cookbook/recipes/{id}`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/cookbook/recipes/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` number, required

## Request body

- UpdateRecipeDto
  - `title` string
  - `description` string
  - `mealType` string
  - `calories` number
  - `protein` number
  - `carbs` number
  - `fat` number
  - `fiber` number
  - `ingredients` object
  - `instructions` object
  - `journeyStage` string
  - `servings` number
  - `prepTime` string
  - `cookTime` string
  - `isCommunity` boolean
  - `ai_note` string: Personalized AI coaching note (not shown in community feed)
  - `nutrition` string[]: Full nutrition breakdown. Merged into macros so all entries are preserved.

## Response `200`

- unknown

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
