[[["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-30 UTC."],[[["\u003cp\u003eThis operation creates a new Collection and sets up its DataConnector, which is a singleton resource managing all DataStores within the Collection.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request for this operation is a POST request to a specific URL using gRPC Transcoding syntax, with the parent parameter defining the project and location.\u003c/p\u003e\n"],["\u003cp\u003eThe request body is structured as JSON and must include a \u003ccode\u003ecollectionId\u003c/code\u003e, a \u003ccode\u003ecollectionDisplayName\u003c/code\u003e, and a \u003ccode\u003edataConnector\u003c/code\u003e object, adhering to specific format requirements and character limits.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecollectionId\u003c/code\u003e is required, must follow RFC-1034 standards, and will be used as the final part of the Collection's resource name.\u003c/p\u003e\n"],["\u003cp\u003eIf the request is successful, the response will include an instance of an Operation, and it requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.setUpDataConnector\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\nCreates a [Collection](/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections#Collection) and sets up the [DataConnector](/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections#DataConnector) for it. To stop a [DataConnector](/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections#DataConnector) after setup, use the [CollectionService.DeleteCollection](/generative-ai-app-builder/docs/reference/rest/v1alpha/projects.locations.collections/delete#google.cloud.discoveryengine.v1alpha.CollectionService.DeleteCollection) method.\n\n### HTTP request\n\n`POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*}:setUpDataConnector`\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](/generative-ai-app-builder/docs/reference/rest/Shared.Types/ListOperationsResponse#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](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `discoveryengine.locations.setUpDataConnector`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]