Meal Plan
This is how the data structure of a Meal Plan object looks like:
The following attributes store the core information of a meal plan:
Attribute
Type
Description
Example Value
meal_plan_id
string
The meal plan identifier.
aab8f93131724117836f8cab365518c6
result_code
string
The meal plan generation result code.
GENERATION_RESULT_CODE_SUCCESS
: Appears when the meal plan is generated successfully.GENERATION_RESULT_CODE_NOT_ENOUGH_MEALS
: Appears when the meal plan fails to generate due to an insufficient number or variety of meals available for you.
Each array further contains additional attributes as described below.
start_date
/end_date
start_date
/end_date
Attribute
Type
Description
Example Value
year
integer
The year.
2020
month
integer
The month.
10
day
integer
The day of the month.
1
meals
meals
Attribute
Type
Description
Example Value
id
string
The meal identifier.
894f285cd9d543d3b78b374f59b56311
meal_type
string
A label to identify the type of meal.
MEAL_TYPE_BREAKFAST
MEAL_TYPE_LUNCH
MEAL_TYPE_DINNER
date_time
array
This attribute is deprecated and displays the same value as the date
attribute.
-
generated
boolean
Shows whether the meal is auto-generated or has been manually added by the user to the meal plan.
true
false
day_slot
number
The day slot assigned to the meal. Each day consists of up to 7 slots, each containing a single meal along with its recipe information.
3
date
array
The date assigned to the meal.
"date": {
"year": 2020,
"month": 10,
"day": 1
}
The Meal Plan API provides the following endpoints:
Note: All Meal Plan API endpoints first check whether a meal plan is already assigned to the user. When not found, a meal plan gets created and assigned to the user automatically. This means there is no need to manually create a meal plan for the user.
Last updated