Meal Plans

Create a meal plan, optionally with its first items

Changed on
post/api/meal-plans

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/meal-plans
  • Auth
    HTTP bearer

Request body

namestring required

Example request

{
  "name": "This week",
  "items": [
    {
      "name": "Lemon Chicken Traybake",
      "servingSize": "1 serving",
      "servings": 4,
      "recipeYield": 2,
      "calories": 420,
      "protein": 35,
      "carbs": 30,
      "fat": 12,
      "fiber": 5
    }
  ]
}

Changes

    • breaking

      the request property became required

    • warning

      deleted the header request parameter x-timezone

    • warning

      removed the request property

    • info

      api operation id MealPlansController_createMealPlan removed and replaced with MealPlansController_createPlan

    • info

      api tag Meal Plans added

    • info

      api tag Meal Planning removed

    • info

      added the new optional request property

    • info

      endpoint added