v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1438212159.2 KB

Creates an empty Git-based source repository in a specified project. The repository is created with an initial empty commit with a default branch named <code>main</code>.

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

Path parameters

spaceNamestring required

The name of the space.

projectNamestring required

The name of the project in the space.

namestring required

The name of the source repository. For more information about name requirements, see <a href="https://docs.aws.amazon.com/codecatalyst/latest/userguide/source-quotas.html">Quotas for source repositories</a>.

Request body

descriptionstring

The description of the source repository.

Response

Success

spaceNamestring required

The name of the space.

projectNamestring required

The name of the project in the space.

namestring required

The name of the source repository.

descriptionstring

The description of the source repository.