Add ingredient to recipe
recipal_add_recipe_ingredientWRITE: add an ingredient line to a recipe, by unit and quantity (the unit must be one the ingredient offers, e.g. "1 cup" or "1 gram"; see units_and_grams from recipal_get_recipe_ingredient or valid_units from recipal_get_ingredient) or directly by total_grams (overrides unit and quantity). Changes the recipe's nutrition, label and cost. POST /recipes/{id}/recipe_ingredients.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit of the ingredient (default: its first unit). | |
| waste | No | Percent of the ingredient that does not go into the product (0-100). Costed in full, excluded from nutrition. | |
| quantity | No | Amount of the unit (default 1). | |
| recipe_id | Yes | ReciPal recipe id. | |
| total_grams | No | Weight in grams; overrides unit and quantity. | |
| ingredient_id | Yes | Ingredient to add. |