Add Meal Plan Template

POST {{baseUrl}}/mealplanner/:username/templates?hash=4b5v4398573406

Add a meal plan template for a user.

Request Params

KeyDatatypeRequiredDescription
hashstring(Required) The private hash for the username.

Request Body

{"username"=>"dsky", "hash"=>"4b5v4398573406"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typenull

RESPONSES

status: OK

{"name":"My new meal plan template","items":[{"day":1,"slot":1,"position":0,"type":"RECIPE","value":{"id":296213,"servings":2,"title":"Spinach Salad with Roasted Vegetables and Spiced Chickpea","imageType":"jpg"}},{"day":2,"slot":1,"position":0,"type":"PRODUCT","value":{"id":183433,"servings":1,"title":"Ahold Lasagna with Meat Sauce","imageType":"jpg"}},{"day":3,"slot":1,"position":0,"type":"MENU_ITEM","value":{"id":378557,"servings":1,"title":"Pizza 73 BBQ Steak Pizza, 9","imageType":"png"}},{"day":4,"slot":1,"position":0,"type":"CUSTOM_FOOD","value":{"id":348,"servings":1,"title":"Aldi Spicy Cashews - 30g","image":"https://spoonacular.com/cdn/ingredients_100x100/cashews.jpg"}},{"day":5,"slot":1,"position":0,"type":"INGREDIENTS","value":{"ingredients":[{"name":"1 banana"},{"name":"coffee","unit":"cup","amount":"1","image":"https://spoonacular.com/cdn/ingredients_100x100/brewed-coffee.jpg"}]}}],"publishAsPublic":false}