Scheduled Meals
Log a scheduled meal (turns it into a normal food log)
Changed onpost/api/planned-meals/{id}/consume
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/planned-meals/{id}/consume
- AuthHTTP bearer
Path parameters
idnumber required
Request body
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_consumePlannedMealremoved and replaced withScheduledMealsController_consumePlannedMeal - info
api tag
Scheduled Mealsadded - info
api tag
Meal Planningremoved
- info