Comments

Add comment reaction

Changed on

This 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

userIdstring required
createdAtstring date-time
emojistring required

Example request

{
  "emoji": "πŸ‘¨β€πŸ‘©β€πŸ‘§",
  "createdAt": "2022-07-13T14:32:50.697Z",
  "userId": "alice"
}

Response

Success. Returns the created reaction.

userIdstring required
createdAtstring date-time required
emojistring required

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-reaction removed and replaced with add-comment-reaction

    • info

      the response property became required for the status