Snippets

Check if the current user is watching a snippet

Used to check if the current user is watching a specific snippet.

Returns 204 (No Content) if the user is watching the snippet and 404 if not.

Hitting this endpoint anonymously always returns a 404.

get/snippets/{workspace}/{encoded_id}/watch

Request

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

Response

If the authenticated user is watching the snippet.

Changes

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