/api/v1/meal-plans/{id}/invitations
Invite a person to a plan
/api/v1/meal-plans/{id}/invitationsSession cookie set by POST /api/v1/auth/login.
In: cookie
Path Parameters
Query Parameters
First day (YYYY-MM-DD) of the entries to answer with; with to left out too, the current week
dateLast day (YYYY-MM-DD), inclusive, at most 62 days after from
dateThe reader's today (YYYY-MM-DD): unlisted leaves out the days before it; left out, today in the server's time zone
dateRequest 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 POST "https://example.com/api/v1/meal-plans/string/invitations" \ -H "Content-Type: application/json" \ -d '{ "userId": "string" }'{ "$schema": "https://example.com/api/v1/schemas/Plan.json", "entries": [ { "createdBy": { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" }, "day": "string", "id": "string", "lists": [ { "entries": 0, "id": "string", "name": "string", "openCount": 0 } ], "photo": "string", "photoFocus": { "x": 0, "y": 0 }, "photoHeight": 0, "photoWidth": 0, "position": 0, "recipeId": "string", "recipeSlug": "string", "servings": 0, "title": "string" } ], "from": "string", "hasEntries": true, "id": "string", "lists": [ { "entries": 0, "id": "string", "name": "string", "openCount": 0 } ], "members": [ { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" } ], "name": "string", "owner": { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" }, "pending": [ { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" } ], "personal": true, "revision": 0, "to": "string", "unlisted": 0}/api/v1/meal-plans/{id}/events GET
A Server-Sent Events stream: `retry: 3000` first, then `event: changed` once as you connect and after every change to the plan, its JSON data carrying the plan's `revision` (refetch the plan to see what changed, unless the one you hold already has that revision), and a `: ping` comment every 25 seconds. The stream ends when the caller loses access to the plan or the server shuts down.
/api/v1/meal-plans/{id}/members/{userId} DELETE
Remove a member or withdraw an invitation