This endpoint allows you to modify the profile and main attributes of an end-user (APIUser). This information associated to the user can be used for features like improving and customizing the output of the food recognition capabilities, personalizing the nutrition recommendations and nutrition plans, adapting to the user intake patterns, etc.
Read the specification of the request body to see the available fields with their descriptions.
This endpoint is the same as /v2/profile/modifyUserProfileInfo
and /v2/managers/modifyUserProfileInfo
.
🌍 Geographic and Language Personalization
We highly recommend including the optional fields country
and language
in the request body:
-
country
(ISO 3166‑1 alpha‑2 code, e.g.,US
,FR
,JP
):
Providing the country allows LogMeal to geographically refine its food recognition capabilities.
This enables improved detection accuracy for region-specific dishes and eating patterns, leading to better personalization in nutrition analysis. -
language
(e.g.,en
,es
,fr
):
Setting the preferred language ensures that the names of food items, ingredients, nutrients, and other elements are returned in the specified language, offering a better user experience tailored to each APIUser.
Including these parameters increases the contextual accuracy and relevance of all subsequent API responses.
🥗 Customizing Recommended Food Group Consumption
You can also use this endpoint to customize the recommended daily or weekly food group portions for a user by passing the min_max_food_groups
field.
This allows setting personalized minimum and/or maximum portion limits per food group, which will be taken into account during dietary analysis and goal calculations.
Important constraints:
-
If you want to indicate that a food group has no minimum requirement, use
null
as themin
value. You must not use0
, since0
would imply the user is expected to consume exactly 0 portions, which is incorrect formin
. -
If you want to explicitly restrict a user from consuming a food group, set the
max
value to0
. This means that any intake of that group will be considered a deviation from the goal.