createRepoBranch
Create a branch at the head of base_branch_id, or at base_commit_id; a body names exactly one of them.
POST
/repos/{repo_id}/branchesPath parameters
Request body JSON required
One of the following:
- CreateBranchFromBranch
- CreateBranchFromCommit
Returns
201
Branch
400
InvalidRequest | RequestBodyTooDeep
JSON
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
404
BranchNotFound | RepoNotFound
JSON
One of the following:
- BranchNotFoundEncoded
- RepoNotFoundEncoded
409
BranchExists | RepoArchived
JSON
One of the following:
- BranchExistsEncoded
- RepoArchivedEncoded
413
WriteTooLarge | RequestBodyTooLarge
JSON
One of the following:
- WriteTooLargeEncoded
- RequestBodyTooLargeEncoded
503
RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded