v2
latestSwagger 2.02026-08-01331211921.0 KBCommits
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
Response
The newly created comment.