āš«šŸ”“šŸ”µ Create a daily goal for a specific nutrient.

Create a daily intake goal for an specific nutritional indicator. The daily nutritional goals a user has will be taken into consideration to generate the intake recommendation (/v2/nutrition/getRecommendedDailyIntake). If a goal for the given nutrient already exists, it will be updated.

Ā 

Note that creating a goal for the daily calorie intake ('ENERC_KCAL') will modify the amount of the recommended main nutrients the user should ingest, but the creation of goals for the main nutrients won't effect the total calories the user should ingest. Be careful when creating goals, make sure the goals match properly the relationship between all the nutritional indicators (e.g. An increment of calorie intake, implies an increment of carbohydrates, fats and protein).

Ā 

A nutritional goal consists on two values that determine the quantity range the users should ingest through their meals.

Ā 

The available indicators with their respective units can be found by using the endpoint '/v2/info/nutrients'.

Ā 

Any custom nutritional indicator defined can also be set as a goal.

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

Parameters to create the nutritional goal. Managers/APICompanies can provide an APIUser ID to modify a specific user's goals.

string
enum
required

Code of the nutritional indicator. Read the endpoint description to find all the options with their related unit.

float
required

Minimum value of the goal range.

float
required

Maximum value of the goal range.

integer

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

Responses
200

Nutritional goal successfully created!

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