/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.
/api/v1/shares/{id}Authorization
session Session cookie set by POST /api/v1/auth/login.
In: cookie
Path Parameters
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"}/api/v1/shares/by-recipe/{recipeId} GET
200 with share: null when the caller has no live public link for this recipe, or the recipe is unknown - not an error, so a page can call this on every view.
/api/v1/shares/{id} DELETE
The caller's own link, or anyone's as an admin. The link stops working at once.