Authentication method to create http access token through API

Zizhan Zhou
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 23, 2024

As per 

https://developer.atlassian.com/server/bitbucket/rest/v910/api-group-authentication/#api-access-tokens-latest-projects-projectkey-repos-repositoryslug-put

There are several endpoints available to create repository, project and user-level access tokens. However, it seems like one can't use an access token to create/update another access token. 

In this cases, what authentication method is required to use these API endpoints? 

I tried bearer token with HTTP token and username with HTTP token in postman and they both seem to be not working as I got the following error:

 

{
    "errors": [
        {
            "context": null,
            "message": "Access tokens cannot create, update or delete other access tokens.",
            "exceptionName": "com.atlassian.bitbucket.ForbiddenException"
        }
    ]
}

1 answer

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 14, 2024

Hi Zizhan,

The only authentication method for administrative endpoints is Basic authentication with username and password.

 

Cheers,

Christian

Premier Support Engineer

Atlassian 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events