Skip to main content
PATCH
/
:projectId
/
comments
/
:commentId
Update Comment
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/comments/:commentId \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "<string>"
}'
{
  "id": "<string>",
  "entityId": "<string>",
  "content": "<string>",
  "updatedAt": "<string>"
}
Updates the content of an existing comment. Only the original author or a master client may perform this operation.

Path Parameters

commentId
string
required
The ID of the comment to update

Body Parameters

content
string
required
The updated comment content

Response

Returns the updated comment object.
id
string
Unique comment identifier
entityId
string
ID of the entity this comment belongs to
content
string
Updated comment content
updatedAt
string
Last update timestamp in ISO 8601 format

Error Responses

{
  "error": "Missing required data",
  "code": "comment/invalid-request"
}
{
  "error": "You do not have permission to update this comment.",
  "code": "comment/forbidden"
}
{
  "error": "Comment not found",
  "code": "comment/not-found"
}
{
  "error": "Internal server error.",
  "code": "comment/server-error",
  "details": "[error message]"
}

Notes

  • Only the author of the comment or a master client can update a comment.
  • If the comment doesn’t exist or the user isn’t authorized, appropriate error responses are returned.
I