I'm creating repositories in BitBucket Cloud and I'm looking for a way to configure the main branch. If I use a simple request as in API documentation in response I see "mainbranch": null. I tried to add a mainbranch parameter to the request body but it's ignored. Actually it looks like any unsupported parameter is ignored.
So the question is how to configure the main branch via API?