Method: projects.repos.create

Creates a repo in the given project with the given name.

If the named repository already exists, repos.create returns ALREADY_EXISTS.

HTTP request


The URL uses Google API HTTP annotation syntax.

Path parameters



The project in which to create the repo. Values are of the form projects/<project>.

Authorization requires the following Google IAM permission on the specified resource parent:

  • source.repos.create

Request body

The request body contains an instance of Repo.

Response body

If successful, the response body contains a newly created instance of Repo.

Authorization Scopes

Requires one of the following OAuth scopes:


For more information, see the Auth Guide.

Send feedback about...

Cloud Source Repositories