---
title: "POST /v2/{+parent}/repositories:batchCreate"
method: POST
path: "/v2/{+parent}/repositories:batchCreate"
tags: ["projects"]
---

# POST /v2/{+parent}/repositories:batchCreate

`POST /v2/{+parent}/repositories:batchCreate`

Creates multiple repositories inside a connection.

## Path parameters

- `parent` string, required

## Request body

- BatchCreateRepositoriesRequest — Message for creating repositoritories in batch.
  - `requests` CreateRepositoryRequest[] — Required. The request messages specifying the repositories to create.
    - `parent` string — Required. The connection to contain the repository. If the request is part of a BatchCreateRepositoriesRequest, this field should be empty or match the parent specified there.
    - `repository` Repository — A repository associated to a parent connection.
      - `annotations` object — Optional. Allows clients to store small amounts of arbitrary data.
      - `name` string — Immutable. Resource name of the repository, in the format `projects/*/locations/*/connections/*/repositories/*`.
      - `updateTime` string, google-datetime — Output only. Server assigned timestamp for when the connection was updated.
      - `remoteUri` string — Required. Git Clone HTTPS URI.
      - `createTime` string, google-datetime — Output only. Server assigned timestamp for when the connection was created.
      - `etag` string — This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
      - `webhookId` string — Output only. External ID of the webhook created for the repository.
    - `repositoryId` string — Required. The ID to use for the repository, which will become the final component of the repository's resource name. This ID should be unique in the connection. Allows alphanumeric characters and any of -._~%!$&'()*+,;=@.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/cloudbuild.md) · [All operations](https://skmtc.net/google/apis/cloudbuild/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/cloudbuild/versions/ae22b39b7e2d/schema)
