1. Bitbucket Website
  2. Public Issue Tracker
  3. master

Issues

Issue #2886 resolved

Follow a Repository (or other entity) via API

Kevin Formsma
created an issue

It would be great if we could follow/unfollow a repository/issue/user via the API. Currently the following resource is view only.

Comments (3)

  1. Dylan Etkin

    Hi,

    We do allow this, we just have not documented the API calls, sorry for that.

    To follow/unfollow a repo you make a GET to https://bitbucket.org/USERNAME/REPO_NAME/follow To follow/unfollow a user you make a GET to https://bitbucket.org/USERNAME/follow To follow/unfollow an issue you make a GET to https://bitbucket.org/USERNAME/REPO_NAME/issue/ISSUE_NUM/follow

    I will create an internal issue to create some documentation around this.

    Cheers,

    Dylan

  2. Kevin Formsma reporter

    Thanks for the info. While those URLs work, they are the standard links from the web interface. I was hoping for something more RESTful. These don't provide any json response like the rest of the API.

  3. Dylan Etkin

    Yeah, they are the URLs we use from the UI. In this case a 200 is your success and anything else is failure.

    We hope to look at reworking the REST api at some point but it will likely not be in the short term.

    Cheers,

    Dylan

  4. Log in to comment