Required. The connection to contain all the repositories being created. Format: projects/*/locations/*/connections/* The parent field in the CreateRepositoryRequest messages must either be empty or match this field.
Request body
The request body contains data with the following structure:
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.
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 -._~%!$&'()*+,;=@.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-17 UTC."],[[["\u003cp\u003eThis endpoint enables the creation of multiple repositories within a specified connection using a batch operation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePOST\u003c/code\u003e request is sent to a URL that includes path parameters defining the parent connection, following gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an array of \u003ccode\u003eCreateRepositoryRequest\u003c/code\u003e objects, each detailing the specifications of a repository to be created.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful operations will return an \u003ccode\u003eOperation\u003c/code\u003e object in the response body.\u003c/p\u003e\n"],["\u003cp\u003eCreating a repository requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003ecloudbuild.repositories.create\u003c/code\u003e on the parent resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.connections.repositories.batchCreate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [CreateRepositoryRequest](#CreateRepositoryRequest)\n - [JSON representation](#CreateRepositoryRequest.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nCreates multiple repositories inside a connection.\n\n### HTTP request\n\n`POST https://cloudbuild.googleapis.com/v2/{parent=projects/*/locations/*/connections/*}/repositories:batchCreate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/build/docs/api/reference/rest/Shared.Types/Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `cloudbuild.repositories.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs).\n\nCreateRepositoryRequest\n-----------------------\n\nMessage for creating a Repository."]]