Automatically computes and posts a daily intake goal given a list of nutrients and a user. There is an optional force parameter that will not take into consideration if the user had previous goals for the nutrients in the list and will recompute and update them. Otherwise the daily nutritional goals a user has will be taken into consideration and won't be updated. If force is not true only the nutrients in the nutrient list that don't have a goal defined for the user will be calculated.
Ā
If the nutrient list is empty or it isn't passed all nutrient goals will be recalculated if force is true. Otherwise only the ones missing in the user's goals. If force is not passed it will be false by default.
Ā
The user profile attributes used for macros calculations (Fat, Protein, Carbs, Energy) are sex, height, weight, birth, and lifestyle. Only sex and age are used for the other nutrients. If the user does not have enough information on its profile, global average values are used for each non-provided user profile attribute.
Ā
The available indicators with their respective units can be found by using the endpoint '/v2/info/nutrients'.
Ā
The following nutrients do not give an autocalculation. They will appear as null in the response (manual goal can still be set): F20D5, F22D6, FOLAC, FOLFD, CAFFN, ALC.