Required. The parent resource name, such as projects/{project}/locations/{location}/collections/{collection}.
Query parameters
Parameters
dataStoreId
string
Required. The ID to use for the DataStore, which will become the final component of the DataStore's resource name.
This field must conform to RFC-1034 standard with a length limit of 63 characters. Otherwise, an INVALID_ARGUMENT error is returned.
createAdvancedSiteSearch
boolean
A boolean flag indicating whether user want to directly create an advanced data store for site search. If the data store is not configured as site search (GENERIC vertical and PUBLIC_WEBSITE contentConfig), this flag will be ignored.
skipDefaultSchemaCreation
boolean
A boolean flag indicating whether to skip the default schema creation for the data store. Only enable this flag if you are certain that the default schema is incompatible with your use case.
If set to true, you must manually create a schema for the data store before any documents can be ingested.
This flag cannot be specified if dataStore.starting_schema is specified.
Union parameter cmek_options. CMEK options for the DataStore. Setting this field will override the default CmekConfig if one is set for the project. cmek_options can be only one of the following:
cmekConfigName
string
Resource name of the CmekConfig to use for protecting this DataStore.
disableCmek
boolean
DataStore without CMEK protections. If a default CmekConfig is set for the project, setting this field will override the default CmekConfig as well.
Request body
The request body contains an instance of DataStore.
Response body
If successful, the response body contains a newly created instance of Operation.
[[["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-06-27 UTC."],[[["\u003cp\u003eThis webpage details the process of creating a DataStore, which is used for storing Documents.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to create a DataStore is a \u003ccode\u003ePOST\u003c/code\u003e request to a specific URL, utilizing gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eCreating a DataStore requires specifying a \u003ccode\u003eparent\u003c/code\u003e path parameter and a \u003ccode\u003edataStoreId\u003c/code\u003e query parameter, along with optional parameters such as \u003ccode\u003ecreateAdvancedSiteSearch\u003c/code\u003e and \u003ccode\u003eskipDefaultSchemaCreation\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a DataStore instance, and a successful response will include a newly created Operation instance.\u003c/p\u003e\n"],["\u003cp\u003eCreating a DataStore requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003ediscoveryengine.dataStores.create\u003c/code\u003e on the parent resource.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.collections.dataStores.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n\nCreates a [DataStore](/generative-ai-app-builder/docs/reference/rest/v1beta/projects.locations.collections.dataStores#DataStore).\n\nDataStore is for storing [Documents](/generative-ai-app-builder/docs/reference/rest/v1beta/projects.locations.collections.dataStores.branches.documents#Document). To serve these documents for Search, or Recommendation use case, an [Engine](/generative-ai-app-builder/docs/reference/rest/v1beta/projects.locations.collections.engines#Engine) needs to be created separately.\n\n### HTTP request\n\n`POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/collections/*}/dataStores`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [DataStore](/generative-ai-app-builder/docs/reference/rest/v1beta/projects.locations.collections.dataStores#DataStore).\n\n### Response body\n\nIf successful, the response body contains a newly created 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.dataStores.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]