Snippets

Watch a snippet

Used to start watching a specific snippet. Returns 204 (No Content).

put/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:write
    • or HTTP basic
    • or API key in header Authorization

Response

Indicates the authenticated user is now watching the snippet.

Changes

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