Skip to main content
POST
/
:projectId
/
api
/
v7
/
comments
/
:commentId
/
reactions
Add Comment Reaction
curl --request POST \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/comments/:commentId/reactions \
  --header 'Content-Type: application/json' \
  --data '
{
  "reactionType": "<string>",
  "userId": "<string>"
}
'
Adds a reaction of the specified type to a comment. If the user already has a reaction on this comment, it is replaced with the new type. The comment’s reactionCounts map is updated accordingly. Authentication required.

Path Parameters

commentId
string
required
The UUID of the comment to react to.

Body Parameters

reactionType
string
required
The type of reaction to add. One of: upvote, downvote, like, love, wow, sad, angry, funny.
userId
string
Override which user the reaction is attributed to. Service or master key only.

Response

Returns the updated Comment object with the new reactionCounts map.

Error Responses

{ "error": "Comment not found.", "code": "comment/not-found" }