I'm running Bitbucket Server 4.14.1.
I'm writing my own DIY backup script based on the documentation. (https://confluence.atlassian.com/bitbucketserver/using-bitbucket-server-diy-backup-776640056.html)
I'm able to lock, start backup, check draining status, update progress, and complete backup via the REST API. (These include HTTP GET and POST.)
However, I am unable to unlock (HTTP DELETE). I get a 400 Bad Request. If I use the unlock token via the UI it works.
Also, I can not cancel the backup (also HTTP DELETE). I get a 405 error. Using the cancel token in the UI works. ('Cancel' is demonstrated in the Atlassian DIY scripts in common.sh.)
BITBUCKET_URL='http://localhost:7990'
Using curl on CentOS 7.