Issue #6520 resolved

Likes REST API returns a 404

Don Brown
created an issue

Comments (7)

  1. Alexandru Guzinschi

    I open this issue because of a few problems.

    • The docs are not updated.
    • Why the new approvals endpoint is using /2.0/ prefix ? This means that likes/approvals are removed completely from version 1.0 of the API ?
    • I can't find any reference in the docs regarding version 2.0 of the API. It is in development ?
  2. Erik van Zijst staff

    Crossposting from #8399:

    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.

  3. Log in to comment