Post API v1 comment like

Changed on
post/api/v1/comment/like

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Request body

$schemastring uri

A URL to the JSON Schema for this object.

comment_idstring required

CommentID of the like

Example request

{
  "$schema": "https://example.com/schemas/CreateCommentLikeBody.json",
  "comment_id": "123e4567-e89b-12d3-a456-426614174000"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

idstring required

ID of the like

likedboolean required

Whether the requested user has liked the comment

totalinteger required

Total number of likes on the comment

Example response

{
  "$schema": "https://example.com/schemas/CreateCommentLikeResponse.json",
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "liked": true,
  "total": 25
}

Changes