Skip to main content
PUT
Update Meal Detail

Authentication

This endpoint does not require authentication based on the source code.

Path Parameters

integer
required
The unique identifier of the meal detail to update

Query Parameters

integer
required
The new recipe ID to assign to this meal detail

Request Example

Response

integer
required
ID of the meal detail
integer
required
Recipe ID associated with the meal detail (updated value)
integer
required
Order of meals (1-6)
integer
required
Status of the meal detail (0: pending, 1: completed)
string
required
Type of meal. Possible values: breakfast, lunch, dinner, snack
object
required
Associated recipe details
integer
required
Unique identifier for the recipe
string
required
Name of the recipe
integer
required
Calorie content (minimum: 0)
integer
required
Protein content in grams (minimum: 0)
integer
required
Carbohydrate content in grams (minimum: 0)
integer
required
Fat content in grams (minimum: 0)
string
URL to the recipe image
string
URL to the full recipe details
integer
required
External recipe identifier
string
required
Comma-separated list of ingredients
array
required
List of applicable meal types
integer
required
Category ID
string
required
Category name
array
required
List of applicable diet types
integer
required
Category ID
string
required
Category name

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

integer
required
The new status value (0: pending, 1: completed)

Request Example

Error Responses

Meal detail with the specified ID not found
Invalid query parameters
An unexpected error occurred on the server