Scheduled Meals
Schedule a meal for a future day
Changed onpost/api/planned-meals
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
- AuthHTTP bearer
Headers
x-timezonestring required
Request body
Example request
{
"foodName": "Grilled Chicken with Rice",
"servingSize": "full portion",
"calories": 350,
"protein": 35,
"carbs": 40,
"fat": 8,
"fiber": 5,
"meal_number": 1,
"plannedDate": "2024-01-20",
"timezone": "America/New_York",
"nutrition": [
{
"name": "Sugar",
"value": 4,
"unit": "g"
},
{
"name": "Sodium",
"value": 170,
"unit": "mg"
}
]
}Response
unknown required
Example response
{
"success": true,
"meal": {
"id": 1,
"user_id": 5,
"food_name": "[PLANNED] Grilled Chicken",
"calories": 180,
"protein": 35,
"meal_number": 2,
"log_date": "2026-02-19"
}
}Changes
- info
api operation id
MealPlanningController_createPlannedMealremoved and replaced withScheduledMealsController_createPlannedMeal - info
api tag
Scheduled Mealsadded - info
api tag
Meal Planningremoved
- info