Hello,
I am trying to delete a branch via REST API using:
`https://api.bitbucket.org/2.0/repositories/ws/repo/refs/branches/my/branch/name` and I'm getting a 500 response with "Something went wrong".
The error ID is `394ff3fdfaea443ab72a823c4a481545`
Please advise
G'day, @lior.regev
Welcome to the community!
You don't have permission to delete the branch based on the error code you shared. This could be because you don't have permission or the branch is protected by branch permission.
I suggest checking if you have admin access to the repository first, and if yes, check your branch permission to see if you can delete the branch.
Regards,
Syahrul
Am I using repository tokens wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @lior.regev
Thanks for the update.
Unfortunately, using repository access tokens does not grant deletion permissions on the API endpoint. To perform this action, you must utilize either an App Password or oAuth. We are currently tracking this feature request; please follow the link below to Vote and Watch the issue:
https://jira.atlassian.com/browse/BCLOUD-22565
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.