restoreRepoBranch
Restore a deleted branch whose name is not in use.
POST
/repos/{repo_id}/branches/{branch}/restorePath parameters
Returns
200
Branch
400
InvalidRequest
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
503
RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded