Mark a meal or unmark a meal.
https://www.mensa-kl.de/api/v1/mark-mealPOST with JSON bodyint meal_id:
The meal ID to mark or unmark.
bool marked:
true to mark the meal, false to unmark the meal.
curl -X POST "https://www.mensa-kl.de/api/v1/mark-meal" \
-H "Authorization: Bearer $AUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"meal_id": 123,
"marked": true
}'
curl -X POST "https://www.mensa-kl.de/api/v1/mark-meal" \
-H "Authorization: Bearer $AUTH_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"meal_id": 123,
"marked": false
}'
The data envelope contains the following marking details:
bool marked:
The current marking state of the meal.
true if the meal is marked, false if the meal is unmarked.
{
"status": "success",
"data": {
"marked": true
}
}
{
"status": "success",
"data": {
"marked": false
}
}
Meal marking can fail for many reasons. Examples:
meal_id) does not exist