Skip to main content
POST
Create branch at a commit

Authorizations

Authorization
string
header
required

Bearer token authorizing this operation's repository action. Each operation's security requirement names the resource action the token must be authorized for (pull or push).

Path Parameters

repoId
string
required
Pattern: ^[0-9A-HJKMNP-TV-Z]{26}$

Body

application/json
branch
string
required

New branch name, bare ("feature/x") or fully qualified ("refs/heads/feature/x").

Required string length: 1 - 1024
commitSHA
string
required

Commit the branch points at. The commit must already exist in the repository.

Pattern: ^[0-9a-f]{40}$|^[0-9a-f]{64}$

Response

Created

branch
string
required

Fully qualified name of the created branch.

commitSHA
string
required

Commit the branch was created at.

Pattern: ^[0-9a-f]{40}$|^[0-9a-f]{64}$
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"https://aws-us-east-2.entire.io/api/v1/schemas/CreateBranchResponse.json"