The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using personal access token to lock bitbucket

va2019
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!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events