ReferenceMeal plans
/api/v1/meal-plans/{id}/staples
Mark or unmark a staple
PUT
/api/v1/meal-plans/{id}/staplesrezepte_session<token>
Session cookie set by POST /api/v1/auth/login.
In: cookie
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/api/v1/meal-plans/string/staples" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "staple": true }'{ "$schema": "https://example.com/api/v1/schemas/StapleList.json", "staples": [ { "name": "string", "nameKey": "string" } ]}