Add ingredient cost
recipal_create_ingredient_costWRITE: add a price for an ingredient that becomes active on effective_at (the active cost is the one with the latest effective_at not after the date; one cost per ingredient per date). price and shipping are per quantity x unit. Changes the cost of every recipe using the ingredient from that date. Not allowed for subrecipe ingredients. POST /ingredient_costs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | A unit of the ingredient, e.g. "1 cup", "1 lb". | |
| price | No | Price for quantity x unit (default 0). | |
| quantity | No | How much of the unit the price covers (default 0). | |
| shipping | No | Shipping for quantity x unit (default 0). | |
| effective_at | Yes | Date the cost becomes active, yyyy-mm-dd. | |
| ingredient_id | Yes | Ingredient id. |