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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"recipe_id": "<recipe_id>",
"recipe_ingredient_id": "<recipe_ingredient_id>",
"fields": "<fields>"
},
"name": "update_recipe_ingredient"
}
}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 |