I am experimenting with the bitbucket api to create a new repo.
When creating the repo the only value I set in the POST request was the scm:
It seems to work fine, and the repo is both GETable via the api and visible through the web interface. However, when I go to delete it via the api I get an error:
{
"type": "error",
"error": {
"message": "Something went wrong",
"id": "89bd52cc05d4470a9087f23da8d3a23f"
}
}
I also cannot delete the repo via the web interface. I get a similar error in a dialog box in the bottom left hand corner of the screen.
The error message is not very informative :-) The only hint I get that something is wrong with the repo is if I try to update the repository settings I get a message:
Please fix errors below
Main branch needs your attention
The value in the main branch section is:
Main branch
Select a valid choice. master is not one of the available choices.
However there are no options available in the list to choose from. (This is actually the same as my other repos, all created through the web interface and which seem to work without a problem).
I assume that there is a permission (or some other) setting missing, but it is not clear to me what. I would very much like to be able to use the api to create repos, but do not want to create a string of repos which I can't then edit successfully.
Any thoughts as to what is wrong?
Thanks!