Hi,
I am trying to create a Jenkins Job that automate the creation of Repository in Bitbucket.
I am facing issues with switching default branch using the REST API-
When I call the API with GET- I am receiving the correct value, but when I try to use the POST for setting value, I don't get any errors, but the default branch is not set.
This is what I try to call-
curl --user <user>:<password> -H "Content-Type: application/json" --data '{ "id": "<New branch>" }' -X POST https://<host>/rest/api/1.0/projects/<Project key>/repos/<repo name>/branches/default