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.
Request Body
application/jsonRequireddefaultBranchRequiredstringPath Parameters
repo_idRequiredstringThe repository ID
Format:
"uuid"Response Body
200
Success
responseRequiredobject403
Error: Forbidden
errorRequiredstringError code in SCREAMING_SNAKE_CASE
messageRequiredstringHuman-readable error message
404
Error: RepoNotFound
errorRequiredstringError code in SCREAMING_SNAKE_CASE
messageRequiredstringHuman-readable error message
500
Error: Internal
errorRequiredstringError code in SCREAMING_SNAKE_CASE
messageRequiredstringHuman-readable error message
Success