Edit a recipe for a company dish. If the dish doesn't have a recipe, a new one will be created.
This endpoint allows you to modify the default dish name (used for display purposes) and add new translations.
There are two ways to update a recipe: you can provide a list of ingredients along with the nutritional values. This is the standard method, giving the user complete control over the values. Alternatively, you can provide only the list of ingredients IDs, which will automatically calculate the recipe's nutritional value internally. Any ingredient passed with the "ingredientName" field instead of "ingredientId" will not be taken into account for this calculation. It's important to note that only ingredients with a valid, existing and associated ID will be considered.
You can also assign a sample image to the dish, which will be associated with it for display purposes. The image file must be in JPG or JPEG format.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
401Unauthorized
403Access denied
404Dish not found.
