šŸ”µāš« Autocompute a daily goal for a specific list of nutrients.

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Parameters to autocompute the daily nutritional goals

integer
required

ID of the user to add a goal to. You must be the owner have access to the user in order to do any modification.

nutrient_list
array

Nutrients you want compute automatically taking into account the force parameter. If empty or not passed all the available nutrients will be computed

nutrient_list
boolean

If true, every nutrient in nutrient_list will be recalculated. If false, only the ones with no previous goal. If not passed, it is false by default

Responses
200

Daily nutritional goals successfully calculated!

401

Unauthorized, invalid token.

403

Forbidden

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json