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

Allow using RAT, PAT and WAT for POST/PUT/DELETE operation in deploy keys endpoint

XMLWordPrintable

    • 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.

      When trying to use Repository Access Tokens (RAT), Project Access Tokens (PAT) or Workspace Access Tokens (WAT)  to POST/PUT/DELETE a deploy key (repository access key) through the API :

      curl --request POST --url 'https://api.bitbucket.org/2.0/repositories/<workspace>/<repository>e/deploy-keys' --header 'Authorization: Bearer <Repository Access token>' -d 
      '{ "label": "newlabel", "key": "ssh-rsa <rest of the key>"}'
      
      

      The following error is returned :

      { "type": "error",  "error": {"message": "This API is not accessible by this authentication mechanism"}} 

      This feature request is to implement the ability to use RATS, PATs, and WATs for POST/PUT/DELETE operations in the following endpoints : 

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

              Unassigned Unassigned
              641e77b2eb21 Patrik S (Inactive)
              Votes:
              6 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: