v2

latestOpenAPI 3.0.02026-08-013312111.4 MB
Commits

Create comment for a commit

Creates new comment on the specified commit.

To post a reply to an existing comment, include the parent.id field:

$ curl https://api.bitbucket.org/2.0/repositories/atlassian/prlinks/commit/db9ba1e031d07a02603eae0e559a7adc010257fc/comments/ \
  -X POST -u evzijst \
  -H 'Content-Type: application/json' \
  -d '{"content": {"raw": "One more thing!"},
       "parent": {"id": 5728901}}'
post/repositories/{workspace}/{repo_slug}/commit/{commit}/comments

Request body

typestring required
idinteger
created_onstring date-time
updated_onstring date-time
deletedboolean

Response

The newly created comment.