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

# POST /v2/{+parent}/repositories

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

Creates a Repository.

## Path parameters

- `parent` string, required

## Query parameters

- `repositoryId` string

## Request body

- 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.

## 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)
