Rezepte 1.7.0: Print a recipe, or a whole cookbook
Skip to Content
ReferenceMeal plans

/api/v1/meal-plans/{id}/shopping

Put planned recipes on a shopping list

POST/api/v1/meal-plans/{id}/shopping

Authorization

rezepte_session<token>

Session cookie set by POST /api/v1/auth/login.

In: cookie

Path Parameters

id*string

Query Parameters

from?string

First day (YYYY-MM-DD) of the entries to answer with; with to left out too, the current week

Formatdate
to?string

Last day (YYYY-MM-DD), inclusive, at most 62 days after from

Formatdate
today?string

The reader's today (YYYY-MM-DD): unlisted leaves out the days before it; left out, today in the server's time zone

Formatdate

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 POST "https://example.com/api/v1/meal-plans/string/shopping" \  -H "Content-Type: application/json" \  -d '{    "picks": [      {        "entryId": "string",        "ingredients": [          {            "group": 0,            "index": 0          }        ]      }    ]  }'
{  "$schema": "https://example.com/api/v1/schemas/ToListResult.json",  "listId": "string",  "plan": {    "$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  }}