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.
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events