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 endpoint facilitates the creation of a DataStore, which is used for storing Documents, requiring a separate Engine for Search or Recommendation use cases.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a POST method with a specific URL structure defined by gRPC Transcoding syntax, including a required \u003ccode\u003eparent\u003c/code\u003e path parameter indicating the project, location, and collection.\u003c/p\u003e\n"],["\u003cp\u003eSeveral query parameters are available to configure the DataStore during creation, including \u003ccode\u003edataStoreId\u003c/code\u003e (required), \u003ccode\u003ecreateAdvancedSiteSearch\u003c/code\u003e, \u003ccode\u003eskipDefaultSchemaCreation\u003c/code\u003e, and CMEK options (\u003ccode\u003ecmekConfigName\u003c/code\u003e or \u003ccode\u003edisableCmek\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include an instance of the DataStore, and upon successful creation, the response body will contain a new instance of an Operation.\u003c/p\u003e\n"],["\u003cp\u003eCreating a DataStore requires specific authorization, including the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope and the \u003ccode\u003ediscoveryengine.dataStores.create\u003c/code\u003e IAM permission 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/v1alpha/projects.locations.collections.dataStores#DataStore).\n\nDataStore is for storing [Documents](/generative-ai-app-builder/docs/reference/rest/v1alpha/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/v1alpha/projects.locations.collections.engines#Engine) needs to be created separately.\n\n### HTTP request\n\n`POST https://discoveryengine.googleapis.com/v1alpha/{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/v1alpha/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)."]]