Update Meal Detail
Plans
Update Meal Detail
Update the recipe associated with a specific meal detail
PUT
Update Meal Detail
Authentication
This endpoint does not require authentication based on the source code.Path Parameters
The unique identifier of the meal detail to update
Query Parameters
The new recipe ID to assign to this meal detail
Request Example
Response
ID of the meal detail
Recipe ID associated with the meal detail (updated value)
Order of meals (1-6)
Status of the meal detail (0: pending, 1: completed)
Type of meal. Possible values:
breakfast, lunch, dinner, snackAssociated recipe details
Unique identifier for the recipe
Name of the recipe
Calorie content (minimum: 0)
Protein content in grams (minimum: 0)
Carbohydrate content in grams (minimum: 0)
Fat content in grams (minimum: 0)
URL to the recipe image
URL to the full recipe details
External recipe identifier
Comma-separated list of ingredients
Response Example
Additional Endpoint: Update Meal Status
You can also update just the status of a meal detail using a different endpoint: API:PUT /meal-detail/{meal_detail_id}/status
Query Parameters
The new status value (0: pending, 1: completed)
Request Example
Error Responses
404 Not Found
Meal detail with the specified ID not found
422 Unprocessable Entity
Invalid query parameters
500 Internal Server Error
An unexpected error occurred on the server
