Snippets

Create a comment on a snippet

Creates a new comment.

The only required field in the body is content.raw.

To create a threaded reply to an existing comment, include parent.id.

post/snippets/{workspace}/{encoded_id}/comments

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • Auth
    • OAuth 2
      Authorization code: https://bitbucket.org/site/oauth2/authorize
      Token URL: https://bitbucket.org/site/oauth2/access_token scopes: snippet
    • or HTTP basic
    • or API key in header Authorization

Request body

typestring required

Response

The newly created comment.

typestring required

Changes

No recorded changes to this operation across all 23 revisions of this API.