Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-22513

Allow using RATs or WATs to a download repository archive

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Currently, a repository archive can be downloaded using the endpoint :

      https://bitbucket.org/<workspace slug>/<repo slug>/get/<commit hash or branch name>.zip
      

      However, it's currently only possible to use the username and app password or OAuth access token as the credentials for authentication.

      When trying to use Repository Access Tokens (RATs) to authenticate :

      curl --request GET --url 'https://bitbucket.org/<workspace>/<repository>/get/master.zip' --header 'Authorization: Bearer <Repository Access token>' 
      

      The following error is returned :

      {"type": "error", "error": {"message": "Token is invalid or not supported for this endpoint."}} 
      

      This feature request is to implement the ability to download repository archives using RATs.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              641e77b2eb21 Patrik S
              Votes:
              7 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: