Endpoint
Path Parameters
The unique identifier of the meal detail to update
Query Parameters
Whether the meal has been consumed (true) or not (false)
Authentication
This endpoint requires authentication. Include the JWT token in the Authorization header.Response
Returns the updated meal detail with the new consumption status.Meal detail ID
ID of the daily menu this meal belongs to
Type of meal (breakfast, lunch, dinner, snack)
ID of the recipe assigned to this meal
Whether the meal has been consumed
Complete recipe information
Example Request
Example Response
200 OK
Error Responses
404 Not Found
404 Not Found
The meal detail with the specified ID does not exist.
401 Unauthorized
401 Unauthorized
Usage in Dashboard
This endpoint is called when users toggle the consumption status of meals in the Dashboard:- User views their daily meal plan
- User clicks the checkbox/toggle on a meal card
- Frontend calls this endpoint with the meal_detail_id and new is_consumed status
- Dashboard updates to reflect the new nutritional totals
