• Audit
  • Policies
  • Branch-utils
  • Git
  • Sync
  • Required-builds
  • Build-status
  • Comment-likes
  • Jira
  • Mirroring
  • Branch-permissions
  • Access-tokens
  • Insights
  • Ssh
  • Api
Server
Bitbucket Data Center / / Modules

Comment-likes

Postman Collection
OpenAPI
GET

Get comment-likes latest projects {projectKey} repos {repositorySlug} commits {commitId} comments {commentId} likesDeprecated

Get a page of users who liked a commit comment in the specified repository, identified by commitId and commentId.

The authenticated user must have the REPO_READ (or higher) permission for the specified repository to access this resource.

Deprecated in 8.0 to be removed in 9.0.

Request

Path parameters

projectKey

string

Required
commentId

integer

Required
commitId

string

Required
repositorySlug

string

Required

Query parameters

start

number

limit

number

Responses

Page of users who liked the specified comment

application/json

object
GET/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}/likes
1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}/likes' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 { "values": [ { "slug": "jcitizen", "emailAddress": "jane@example.com", "displayName": "Jane Citizen", "name": "jcitizen", "id": 101, "type": "NORMAL", "active": true } ], "size": 1, "isLastPage": true, "nextPageStart": 2154, "start": 2154, "limit": 25 }
POST

Post comment-likes latest projects {projectKey} repos {repositorySlug} commits {commitId} comments {commentId} likesDeprecated

Like a commit comment in the specified repository, identified by commitId and commentId.

The authenticated user must have the REPO_READ (or higher) permission for the specified repository to access this resource.

Deprecated in 8.0 to be removed in 9.0. Likes have been replaced with reactions. For backwards compatibility, the

thumbsup
reaction is treated as a like.

Request

Path parameters

projectKey

string

Required
commentId

integer

Required
commitId

string

Required
repositorySlug

string

Required

Responses

No content response indicating that the request succeeded

POST/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}/likes
1 2 curl --request POST \ --url 'http://{baseurl}/rest/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}/likes'
DEL

Delete comment-likes latest projects {projectKey} repos {repositorySlug} commits {commitId} comments {commentId} likesDeprecated

Unlike a commit comment in the specified repository, identified by commitId and commentId.

The authenticated user must have the REPO_READ (or higher) permission for the specified repository to access this resource.

Deprecated in 8.0 to be removed in 9.0. Likes have been replaced with reactions. For backwards compatibility, the

thumbsup
reaction is treated as a like.

Request

Path parameters

projectKey

string

Required
commentId

integer

Required
commitId

string

Required
repositorySlug

string

Required

Responses

No content response indicating that the request succeeded

DEL/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}/likes
1 2 curl --request DELETE \ --url 'http://{baseurl}/rest/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}/likes'
PUT

Put comment-likes latest projects {projectKey} repos {repositorySlug} commits {commitId} comments {commentId} reactions {emoticon}

Request

Path parameters

projectKey

string

Required
commentId

string

Required
commitId

string

Required
emoticon

string

Required
repositorySlug

string

Required

Responses

default response

application/json;charset=UTF-8

any

PUT/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}/reactions/{emoticon}
1 2 curl --request PUT \ --url 'http://{baseurl}/rest/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}/reactions/{emoticon}'
DEL

Delete comment-likes latest projects {projectKey} repos {repositorySlug} commits {commitId} comments {commentId} reactions {emoticon}

Request

Path parameters

projectKey

string

Required
commentId

string

Required
commitId

string

Required
emoticon

string

Required
repositorySlug

string

Required

Responses

default response

application/json;charset=UTF-8

any

DEL/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}/reactions/{emoticon}
1 2 curl --request DELETE \ --url 'http://{baseurl}/rest/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/comments/{commentId}/reactions/{emoticon}'
GET

Get comment-likes latest projects {projectKey} repos {repositorySlug} pull-requests {pullRequestId} comments {commentId} likesDeprecated

Get a page of users who liked a pull request comment in the specified repository, identified by pullRequestId and commentId.

The authenticated user must have the REPO_READ (or higher) permission for the specified repository to access this resource.

Deprecated in 8.0 to be removed in 9.0.

Request

Path parameters

projectKey

string

Required
commentId

string

Required
pullRequestId

string

Required
repositorySlug

string

Required

Query parameters

start

number

limit

number

Responses

Page of users who liked the specified comment

application/json

object
GET/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/likes
1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/likes' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 { "values": [ { "slug": "jcitizen", "emailAddress": "jane@example.com", "displayName": "Jane Citizen", "name": "jcitizen", "id": 101, "type": "NORMAL", "active": true } ], "size": 1, "isLastPage": true, "nextPageStart": 2154, "start": 2154, "limit": 25 }
POST

Post comment-likes latest projects {projectKey} repos {repositorySlug} pull-requests {pullRequestId} comments {commentId} likesDeprecated

Like a pull request comment in the specified repository, identified by pullRequestId and commentId. The like will be recorded against the requesting user.

The authenticated user must have the REPO_READ (or higher) permission for the specified repository to access this resource.

Deprecated in 8.0 to be removed in 9.0. Likes have been replaced with reactions. For backwards compatibility, the

thumbsup
reaction is treated as a like.

Request

Path parameters

projectKey

string

Required
commentId

string

Required
pullRequestId

string

Required
repositorySlug

string

Required

Responses

No content response indicating that the request succeeded

POST/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/likes
1 2 curl --request POST \ --url 'http://{baseurl}/rest/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/likes'
DEL

Delete comment-likes latest projects {projectKey} repos {repositorySlug} pull-requests {pullRequestId} comments {commentId} likesDeprecated

Unlike a pull request comment in the specified repository, identified by pullRequestId and commentId.

The authenticated user must have the REPO_READ (or higher) permission for the specified repository to access this resource.

Deprecated in 8.0 to be removed in 9.0. Likes have been replaced with reactions. For backwards compatibility, the

thumbsup
reaction is treated as a like.

Request

Path parameters

projectKey

string

Required
commentId

string

Required
pullRequestId

string

Required
repositorySlug

string

Required

Responses

No content response indicating that the request succeeded

DEL/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/likes
1 2 curl --request DELETE \ --url 'http://{baseurl}/rest/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/likes'
PUT

Put comment-likes latest projects {projectKey} repos {repositorySlug} pull-requests {pullRequestId} comments {commentId} reactions {emoticon}

Request

Path parameters

projectKey

string

Required
commentId

string

Required
pullRequestId

string

Required
emoticon

string

Required
repositorySlug

string

Required

Responses

default response

application/json;charset=UTF-8

any

PUT/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/reactions/{emoticon}
1 2 curl --request PUT \ --url 'http://{baseurl}/rest/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/reactions/{emoticon}'
DEL

Delete comment-likes latest projects {projectKey} repos {repositorySlug} pull-requests {pullRequestId} comments {commentId} reactions {emoticon}

Request

Path parameters

projectKey

string

Required
commentId

string

Required
pullRequestId

string

Required
emoticon

string

Required
repositorySlug

string

Required

Responses

default response

application/json;charset=UTF-8

any

DEL/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/reactions/{emoticon}
1 2 curl --request DELETE \ --url 'http://{baseurl}/rest/comment-likes/latest/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/comments/{commentId}/reactions/{emoticon}'

Rate this page: