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 page details the process of creating a DataStore, which is used for storing Documents and requires a separate Engine for Search or Recommendation use cases.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to create a DataStore is a POST method, utilizing gRPC Transcoding syntax, and requires a specified parent resource in the URL.\u003c/p\u003e\n"],["\u003cp\u003eThe creation process requires a \u003ccode\u003edataStoreId\u003c/code\u003e query parameter conforming to RFC-1034, with options to configure advanced site search and default schema creation.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a DataStore instance, and a successful operation will return a new Operation instance in the response body.\u003c/p\u003e\n"],["\u003cp\u003eCreating the DataStore requires the \u003ccode\u003ediscoveryengine.dataStores.create\u003c/code\u003e IAM permission on the parent resource, alongside the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.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/v1/projects.locations.collections.dataStores#DataStore).\n\nDataStore is for storing [Documents](/generative-ai-app-builder/docs/reference/rest/v1/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/v1/projects.locations.collections.engines#Engine) needs to be created separately.\n\n### HTTP request\n\n`POST https://discoveryengine.googleapis.com/v1/{parent=projects/*/locations/*}/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/v1/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)."]]