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

/api/v1/shares/{id}

Restarts the caller's own link's lifetime from now, the owner's maximum included, so a limited link comes back. A paused link cannot be re-timed.

PATCH/api/v1/shares/{id}

Authorization

session
rezepte_session<token>

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

In: cookie

Path Parameters

id*string

Share id

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

application/problem+json

application/problem+json

curl -X PATCH "https://example.com/api/v1/shares/string" \  -H "Content-Type: application/json" \  -d '{    "days": 1  }'
{  "$schema": "https://example.com/api/v1/schemas/Share.json",  "createdAt": "2019-08-24T14:15:22Z",  "createdBy": {    "color": "string",    "displayName": "string",    "id": "string"  },  "expiresAt": "2019-08-24T14:15:22Z",  "id": "string",  "path": "string",  "recipe": {    "id": "string",    "slug": "string",    "title": "string"  },  "startsAt": "2019-08-24T14:15:22Z",  "status": "active"}