Currently, I’m working on setting the default branch using the update repository endpoint: https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug} but there is no changes in the bitbucket cloud repo even though the response code is 200.
PUT https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}
{
"mainbranch": {
"type": "branch",
"name": "develop"
}
}
Do you know if it’s bug or it should be done differently ?