Create Meal Plan Template
Use the createMealPlanTemplate
mutation to create a meal plan template depending on your custom dietary requirements.
It is required to use only the Authorization: Token <api-token>
to execute this query.
Meal Plan templates types
There are 3 options to create a meal plan template:
customOptions
: Send the parameters in the same way as if thecustomMealPlan
sends. The meal plan generated is saved in this template.fromDays
: Copy an existing meal plan which has a user assigned. Send aprofileId
and user's meal plan days required to be copied and saved in the template.fromScratch
: Send a complete meal plan and define the number of days of it. All the parameters such as days, recipes, etc., have to be introduced manually. All this information is later saved as a template.
How a meal plan template works:
Create a meal plan template according to your requirements. You can choose any of the 3 types o meal templates mentioned above.
List all available meal plan templates to get its id to either assign it to a user or generate a meal plan based on its id.
Assign a meal plan template to a user.
Generate a meal plan based on a meal plan template created.
Available arguments
Last updated