Create or update a product
PUT/products/:id
Create or update a single product. The response already contains the finished calculation, so there is no second request to make.
A product changes only through the product endpoints. When a recipe or supply sends an id as a
conceptual-ingredients ingredient, it modifies the ingredient at that id, never a product. If
a product already holds that id, the request fails with 613. To use the product in a
recipe, reference it with type: products.
Request
Responses
- 200
- 401
- 613
The product was stored and calculated
No authorization - valid API key not provided
A conceptual-ingredients ingredient occupies this id, so it is not available for a
product. Repeat the request with convert-ingredient-to-product=true to take the id.