Allows creating a custom recipe that will only be visible by your company. You can create recipes that will be consumed exclusively by your users. You can provide a default dish name, ingredient_list and nutritional_indicators for each custom recipe. Note that all ingredients and nutrients quantities must be introduced for the standard serving size of the recipe.
Ā
Furthermore, you can optionally provide a set of translations for your dish to all the available languages (see endpoint /v2/info/languages to know which is the set of valid languages). The users will visualize the translation corresponding to his/her language. If a language's value is set to null, the stored translation for that language will be deleted. IMPORTANT: note that at least the language 'eng' MUST be provided if you want the recognition algorithms to automatically detect the custom recipes.
Ā
To identify an ingredient it can be done in two different ways. Either passing an 'ingredientId' (it must be a valid ingredient id from the LogMeal system) or an 'ingredientName'. When passing a Name, the ingredient, will be present in the recipe and will be usable but it will not have some functionalities since it is not in the system and there is no data associated to it. It could be anything.
Ā
Refer to GET '/v2/info/nutrients' to see a list of valid nutrient codes. Where you can find the 'indicatorCode' and unit for the 'indicatorAmount' for all the available nutrients. Refer to GET '/v2/dataset/ingredients', it will return all the valid ingredients names and their ids. All values for 'ingredientAmount' must be reported in grams and all values for 'indicatorAmount' must be reported in the indicator-specific unit reported in '/v2/info/nutrients'.
Ā
If a list of ingredients is provided but not a list of nutrients, the nutritional information will be automatically calculated based on the list of ingredients stored in the system. It's important to note that only ingredients with a valid, existing and associated ID will be considered.
Ā
This endpoint has an 'image' parameter in the request body which is in the 'multipart/form-data', and other parameters are in 'application/json'. You can check it from the dropdown from the right corner.