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