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 gRPC Transcoding syntax.

Path parameters



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

Authorization requires the following 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 the following OAuth scope:


For more information, see the Authentication Overview.