/
/Bitbucket API
ChangesDocsSign in
Sign in
  • APIs
  • Generators
  • Stacks
  • Projects
  • Docs
  • History
  • Schema
Updated on 2026-09-26
Addon3
Branch restrictions5
Branching model7
Commit statuses4
Commits17
Deployments16
Downloads4
GPG4
Pipelines68
Projects16
properties12
Pullrequests37
Refs9
Reports9
Repositories24
Search3
Snippets24
  • postCreate a snippet
  • getList snippets in a workspace
  • postCreate a snippet for a workspace
  • getGet a snippet
  • putUpdate a snippet
  • deleteDelete a snippet
  • getList comments on a snippet
  • postCreate a comment on a snippet
  • getGet a comment on a snippet
  • putUpdate a comment on a snippet
  • deleteDelete a comment on a snippet
  • getList snippet changes
  • getGet a previous snippet change
  • getGet a snippet's raw file at HEAD
  • getCheck if the current user is watching a snippet
  • putWatch a snippet
  • deleteStop watching a snippet
  • getList users watching a snippet
  • getGet a previous revision of a snippet
  • putUpdate a previous revision of a snippet
  • deleteDelete a previous revision of a snippet
  • getGet a snippet's raw file
  • getGet snippet changes between versions
  • getGet snippet patch between versions
Source4
SSH5
Users4
Webhooks2
Workspaces16
    Snippets

    Watch a snippet

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

    put/snippets/{workspace}/{encoded_id}/watch

    Response

    Indicates the authenticated user is now watching the snippet.

    Changes