Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Using personal access token to lock bitbucket

va2019 May 16, 2020

Hello,

I tried to lock my bitbucket instance as following -

curl -k -L -s -f -H 'Authorization: Bearer <personal-access-token>' -X POST -H 'Content-type: application/json' https://example.com/bitbucket/mvc/maintenance/lock

This returns a 401 Unauthorized response... However, the personal-access-token has admin access to project and repository.

This does work when using username/password.

Thanks

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events