Comments
Add comment reaction
Changed onThis endpoint adds a reaction to a comment. Corresponds to liveblocks.addCommentReaction.
post/rooms/{roomId}/threads/{threadId}/comments/{commentId}/add-reaction
Request
- Base URL: https://api.liveblocks.io/v2
- URL: https://api.liveblocks.io/v2/rooms/{roomId}/threads/{threadId}/comments/{commentId}/add-reaction
- Auth: none declared
Path parameters
roomIdstring required
ID of the room
Example:my-room-id
threadIdstring required
ID of the thread
Example:th_abc123
commentIdstring required
ID of the comment
Example:cm_abc123
Request body
Example request
{
"emoji": "π¨βπ©βπ§",
"createdAt": "2022-07-13T14:32:50.697Z",
"userId": "alice"
}Response
Success. Returns the created reaction.
Example response
{
"emoji": "π¨βπ©βπ§",
"createdAt": "2022-07-13T14:32:50.697Z",
"userId": "alice"
}Changes
- breaking
request body became required
- info
api operation id
post-rooms-roomId-threads-threadId-comments-commentId-add-reactionremoved and replaced withadd-comment-reaction - info
the response property
became required for the status
- breaking