API Reference/Git
Set repository default branch
Set the default branch name for a repository. This will update the HEAD reference to point to the new default branch.
PUT
/git/v1/repo/{repo_id}/default-branch
Request Body
application/json
RequireddefaultBranch
RequiredstringPath Parameters
repo_id
RequiredstringThe repository ID
Format:
"uuid"
Response Body
200
Success
response
RequiredobjectSuccess