/api/v1/shopping-lists/{id}/import
Add items from text
/api/v1/shopping-lists/{id}/importSession cookie set by POST /api/v1/auth/login.
In: cookie
Path Parameters
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/shopping-lists/string/import" \ -H "Content-Type: application/json" \ -d '{ "text": "string" }'{ "$schema": "https://example.com/api/v1/schemas/List.json", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "string", "doneCount": 0, "entries": [ { "baseServings": 0, "coverFocus": { "x": 0, "y": 0 }, "coverHeight": 0, "coverImageId": "string", "coverWidth": 0, "id": "string", "planAddedBy": { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" }, "planDay": "string", "planEntryId": "string", "planId": "string", "planMember": true, "planName": "string", "planPersonal": true, "recipeId": "string", "recipeSlug": "string", "servings": 0, "title": "string" } ], "id": "string", "items": [ { "addedBy": { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" }, "checked": true, "checkedBy": { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" }, "department": "produce", "entryId": "string", "group": "string", "id": "string", "name": "string", "nameKey": "string", "note": "string", "quantity": 0, "unit": "string" } ], "members": [ { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" } ], "name": "string", "openCount": 0, "owner": { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" }, "pending": [ { "avatarId": "string", "color": "string", "displayName": "string", "id": "string" } ], "revision": 0, "updatedAt": "2019-08-24T14:15:22Z"}/api/v1/shopping-lists/{id}/events GET
A Server-Sent Events stream: `retry: 3000` first, then `event: changed` once as you connect and after every change to the list, its JSON data carrying the list's `revision` (refetch the list 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 list or the server shuts down.
/api/v1/shopping-lists/{id}/invitations POST
Invite a person to a list