Create a Meal Tracker Entry
Last updated
Last updated
Meal Tracking is a simplified version of food logging that only works for meal plan meals.
Use the createMealEntry
mutation to add a meal entry for a specific meal. These created meal entries can be tracked by using the mealTracker
query.
Meal entries can have an assigned value. For instance, if you want to skip a meal, you can send the value: SKIPPED
as a parameter. Below you will find all the possible values a meal entry can have.
Note: Currently tracking service only supports JWT authentication
The following fields will be displayed in the response:
The following examples will create a skipped meal entry
Field
Type
Note
mealId
ID
The meal ID (from the meal plan)
value
String
Value of the meal. Possible values:
SKIPPED
, ATE
, OTHER_FOLLOWING
, OTHER_NOT_FOLLOWING
, and DELETE
Field
Type
Note
success
Boolean
True if a meal entry has been created. Otherwise, it displays False
message
String
Description of the result