API Reference/Git
Get repository default branch
Get the default branch name for a repository.
Path Parameters
repo_idRequiredstringThe repository ID
Format:
"uuid"Response Body
200
Success
defaultBranchRequiredstring403
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