Rezepte 1.3.1: The app offers notifications
ReferenceComments

/api/v1/comments/{commentId}

Replaces the body and, when imageIds is present, the photo set. editedAt moves only when the body or the photos changed.

PATCH/api/v1/comments/{commentId}

Authorization

rezepte_session<token>

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

In: cookie

Path Parameters

commentId*integer
Formatint64

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/comments/0" \  -H "Content-Type: application/json" \  -d '{    "body": "string"  }'
{  "$schema": "https://example.com/api/v1/schemas/Comment.json",  "author": {    "avatarId": "string",    "color": "string",    "displayName": "string",    "id": "string",    "username": "string"  },  "body": "string",  "canDelete": true,  "canEdit": true,  "createdAt": "2019-08-24T14:15:22Z",  "editedAt": "2019-08-24T14:15:22Z",  "id": 0,  "images": [    {      "$schema": "https://example.com/api/v1/schemas/CommentImage.json",      "height": 0,      "id": "string",      "inRecipe": true,      "width": 0    }  ],  "new": true}