Creating a Meal Plan
Step by step guide for creating a meal plan
Getting Started
curl -XPOST 'https://production.suggestic.com/graphql' \
-H 'Authorization: Bearer <User-JWT>' \
-H 'Content-Type: application/json' \
--data-raw '{"query":"mutation { generateSimpleMealPlan { success message } }","variables":{}}'{
"data": {
"generateSimpleMealPlan": {
"success": true,
"message": "Meal plan was successfully created"
}
}
}curl -XPOST 'https://production.suggestic.com/graphql' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer Bearer <User-JWT>' \
--data-raw '{"query":"{ mealPlan { day date calories meals { meal recipe { name } } } }"}'{
"data": {
"mealPlan": [
{
"day": 7,
"date": "2021-03-15 02:00:00+00:00",
"calories": 1966.93596472514,
"meals": [
{
"meal": "breakfast",
"recipe": {
"name": "Chocolate Collagen Keto Granola"
}
},
{
"meal": "dinner",
"recipe": {
"name": "Pan-Seared Salmon And Roasted Vegetables"
}
},
{
"meal": "lunch",
"recipe": {
"name": "Layered Bean Dip"
}
},
{
"meal": "snack",
"recipe": {
"name": "Celery With Cream Cheese"
}
}
]
},
[...]
{
"day": 1,
"date": "2021-03-09 02:00:00+00:00",
"calories": 2028.06644439517,
"meals": [
{
"meal": "breakfast",
"recipe": {
"name": "Scotch Eggs"
}
},
{
"meal": "dinner",
"recipe": {
"name": "Turmero Onion Burgers"
}
},
{
"meal": "lunch",
"recipe": {
"name": "Herb-Seasoned Sheperd'S Pie"
}
},
{
"meal": "snack",
"recipe": {
"name": "Seasoned Roasted Carrots"
}
}
]
}
]
}
}Dates
Meal Plan Lock
Customization and configuration
How to apply restrictions to a meal plan
How to subscribe users to a specific program
How to add custom attributes
Common Errors
More about meal plans
Last updated
Was this helpful?