Scheduled Meals

Log a scheduled meal (turns it into a normal food log)

Changed on
post/api/planned-meals/{id}/consume

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/planned-meals/{id}/consume
  • Auth
    HTTP bearer

Path parameters

idnumber required

Request body

portionAmountnumber

Portion multiplier (informational only, macros should be pre-calculated by UI)

portionUnitstring
log_datestring

Log date in YYYY-MM-DD format

log_timestring

Log time in HH:MM:SS format

caloriesnumber
proteinnumber
carbsnumber
fatnumber
fibernumber
sugarnumber
sodiumnumber
meal_numbernumber

Meal slot number (1=breakfast, 2=lunch, 3=dinner, etc.)

nutritionstring[]

Detailed nutrition breakdown

Example request

{
  "portionAmount": 1,
  "portionUnit": "serving",
  "log_date": "2024-03-17",
  "log_time": "12:30:00",
  "calories": 350,
  "protein": 25.5,
  "carbs": 30,
  "fat": 12,
  "fiber": 4,
  "sugar": 5,
  "sodium": 480,
  "meal_number": 1,
  "nutrition": [
    {
      "name": "Sugar",
      "value": 4,
      "unit": "g"
    },
    {
      "name": "Sodium",
      "value": 170,
      "unit": "mg"
    }
  ]
}

Response

unknown required

Example response

{
  "success": true,
  "message": "Planned meal consumed and logged",
  "foodLog": {
    "id": 101,
    "user_id": 5,
    "food_name": "Grilled Chicken",
    "calories": 180,
    "protein": 35,
    "log_date": "2026-02-19"
  }
}

Changes

    • info

      api operation id MealPlanningController_consumePlannedMeal removed and replaced with ScheduledMealsController_consumePlannedMeal

    • info

      api tag Scheduled Meals added

    • info

      api tag Meal Planning removed