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

XMLWordPrintable

      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.

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

              Created:
              Updated: