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

/api/v1/recipes/{id}/images/{imageId}

The point that stays in view wherever the photo is cropped, as fractions of the upright photo: 0 is the left or top edge, 1 the right or bottom one.

PATCH/api/v1/recipes/{id}/images/{imageId}

Authorization

rezepte_session<token>

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

In: cookie

Path Parameters

id*string
imageId*string

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

curl -X PATCH "https://example.com/api/v1/recipes/string/images/string" \  -H "Content-Type: application/json" \  -d '{    "focus": {      "x": 0,      "y": 0    }  }'
{  "$schema": "https://example.com/api/v1/schemas/Image.json",  "createdAt": "2019-08-24T14:15:22Z",  "focus": {    "x": 0,    "y": 0  },  "height": 0,  "id": "string",  "position": 0,  "sizeBytes": 0,  "width": 0}