Dayli Docs
API referenceInteractions

Edit a comment

PATCH
/api/v1/posts/{postId}/comments/{commentId}

Lets the commenter change their comment while they can still read the post. The comment is then marked edited. Anyone else's comment returns 404.

Authorization

AuthorizationBearer <token>

In: header

Path Parameters

postId*string
Length1 <= length <= 128
commentId*string
Length1 <= length <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/v1/posts/post-1/comments/comment-1" \  -H "Content-Type: application/json" \  -d '{    "text": "That sunset!"  }'
{  "id": "post_01K4Y6P8K2",  "postId": "post_01K4Y6P8K2",  "parentCommentId": "post_01K4Y6P8K2",  "author": {    "id": "post_01K4Y6P8K2",    "username": "string",    "displayName": "string"  },  "text": "string",  "createdAt": "2026-09-09T12:00:00Z",  "editedAt": "2026-09-09T12:00:00Z",  "viewerCanEdit": true,  "viewerCanDelete": true}