Hello, I am attempting to create a bitbucket via the bitbucket cloud API as per: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-put
I have been unsuccessful in being able to create a repo with the main branch named "main", rather than "Master". This is the request I am using:
G'day, @Andre Pilakis and Welcome to Community!
I understand you wish to create a repository with a new default branch via the Create Repository API endpoint. However, I discover that the API endpoint does not support changing the default branch name when creating a new repository. This is only available in the UI.
We do have an existing feature request on this that I highly suggest you Watch and Vote to get an update at:
Update API endpoint to allow changing main branch name
Cheers,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.