update_recipe
Update an existing Cronometer recipe without losing its diary entries. Change the name, notes, ingredients, or cooked weight by passing only the fields to modify.
Instructions
Edit one of your recipes in place, keeping its diary entries.
Only what you pass changes, and the serving type never does: Cronometer fixes it at creation. Passing ingredients replaces the whole list, so send every ingredient rather than only the new ones.
Args: food_id: The recipe to edit. name: New name. notes: New note text. ingredients: Full replacement list of {"food_id": int, "grams": float, "measure_id": int (optional)}. cooked_grams: New finished weight. Weight-based recipes only, and it needs the ingredients too, since the nutrition is recomputed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| notes | No | ||
| food_id | Yes | ||
| ingredients | No | ||
| cooked_grams | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |