Aller au contenu principal

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

The product was stored and calculated