Snippets

Create a comment on a snippet

Changed on

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
  • URL
    https://api.bitbucket.org/2.0/snippets/{workspace}/{encoded_id}/comments
  • 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

    • warning

      removed the request property /////

    • warning

      removed the request property /////

    • warning

      removed the optional property ///// from the response with the status

    • warning

      removed the optional property ///// from the response with the status