v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

Creates a branch in a repository and points the branch to a commit.

Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.

post/#X-Amz-Target=CodeCommit_20150413.CreateBranch

Headers

X-Amz-Target'CodeCommit_20150413.CreateBranch' required

Request body

repositoryNamestring required

The name of the repository in which you want to create the new branch.

branchNamestring required

The name of the new branch to create.

commitIdstring required

The ID of the commit to point the new branch to.

Response

Success