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

Issues

Issue #8399 resolved

Likes/Approvals REST api returning 404s (again)

Peter Kovacs
created an issue

Comments (5)

  1. Erik van Zijst staff

    We're currently working to release the first public version of our new v2 API. This API has seen a few changes over the past months and the changeset approval mechanism was among that (the 1.0 API should not see any backwards incompatible changes).

    Approvals on changesets no longer live under a separate resource URL. Instead, they are now an embedded element in the (v2) commit object. Look for the participants element:

    https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-rest/commit/61d9e64348f9da407e62f64726337fd3bb24b466

    This object also contains a link used to approve and unapprove the changeset (https://api.bitbucket.org/2.0/repositories/atlassian/atlassian-rest/commit/61d9e64348f9da407e62f64726337fd3bb24b466/approve). To approve just POST and empty body to that URL. To unapprove, issue a DELETE.

    We're aiming to publish the documentation that describes all this next week, but this should allow you get going right away.

  2. Log in to comment