v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1438212159.2 KB

Creates a branch in a specified source repository in Amazon CodeCatalyst.

This API only creates a branch in a source repository hosted in Amazon CodeCatalyst. You cannot use this API to create a branch in a linked repository.

put/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches/{name}

Path parameters

spaceNamestring required

The name of the space.

projectNamestring required

The name of the project in the space.

sourceRepositoryNamestring required

The name of the repository where you want to create a branch.

namestring required

The name for the branch you're creating.

Request body

headCommitIdstring

The commit ID in an existing branch from which you want to create the new branch.

Response

Success

refstring

The Git reference name of the branch.

namestring

The name of the newly created branch.

lastUpdatedTimestring date-time

The time the branch was last updated, in coordinated universal time (UTC) timestamp format as specified in <a href="https://www.rfc-editor.org/rfc/rfc3339#section-5.6">RFC 3339</a>.

headCommitIdstring

The commit ID of the tip of the newly created branch.