Change a private recipe
update_recipeEdit one of your own private Fitatu recipes: change name, servings, description, or replace the full ingredient list; other recipes are rejected before changes apply.
Instructions
Change one of the user's own private recipes (create_recipe's recipe_id or a get_my_foods RECIPE hit's food_id): its name, ingredients (the whole new list, each as create_recipe takes it and checked the same way), servings and/or description; what is not given stays as it is. Any other recipe is refused before anything is changed (that check reads the recipe). Returns per_serving as create_recipe does, and previous (name, servings, description, ingredients), which update_recipe takes to undo the change. data.ok says the server accepted it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The new name. | |
| servings | No | How many servings the ingredients make. | |
| recipe_id | Yes | Id of a recipe the user created. | |
| description | No | How to make it, as the app shows it. | |
| ingredients | No | Every product of the recipe, each as add_food takes it; replaces the list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | describe_error() of what went wrong; docs/AGENTS.md, Results and errors. |