update_recipe_ingredient
Update a specific ingredient line in a recipe by adjusting its unit, quantity, waste, or total grams. Note: for swapping ingredients, delete and create a new line instead.
Instructions
Update one ingredient line. PUT /recipes/{id}/recipe_ingredients/{ri_id}. NOTE: this endpoint silently ignores ingredient_id — it returns 200 with the original ingredient still attached. To swap one ingredient for another you must delete the line and create a new one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | {unit?, quantity?, waste?, total_grams?} — ingredient_id is ignored. | |
| as_json | No | ||
| recipe_id | Yes | ||
| recipe_ingredient_id | Yes |