Can't change main branch on Sonarcloud

I have administrator rights for the organization.
And I still don’t see the menu to change main branch on the screen.
Even if I use the API to change it, it still doesn’t work.
I use API as:

curl --location '{project_id}&name=develop' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxx'

and I received error message.

    "errors": [
            "msg": "Project doesn't exist"

But when I try again with the get branch API, the banch is still displayed as usual.

Can someone share with me how to change the main branch without deleting the old branch?


The problem has been resolved. The reason is that I forgot to set it to the owner group

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.