Replies to comments using API

Hello, I want to add a reply to a comment via the API. In the bitbucket UI you can easily reply to a comment by hitting the “reply” button. When hitting the API, though, I can’t seem to find a way to reply to a comment. I can change a comment using the PUT /2.0/repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments/{comment_id} , but that’s not really what I want to do. I want to reply to a specific comment, not change the comment. I can add a comment to a pull request with the POST /2.0/repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments , but I don’t want to add a comment to the PR, I want to add it specifically as a reply to a comment. Is there a way to do this?

I figured it out! You just use the POST https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/comments and then in the body you put "parent": { "id": parent comment id} along with the "content": { "raw": comment text }