Required. The parent resource name, such asprojects/{project}/locations/{location}/collections/{collection}.
Query parameters
Parameters
dataStoreId
string
Required. The ID to use for theDataStore, which will become the final component of theDataStore's resource name.
This field must conform toRFC-1034standard 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 ifdataStore.starting_schemais specified.
Union parametercmek_options. CMEK options for the DataStore. Setting this field will override the default CmekConfig if one is set for the project.cmek_optionscan 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 ofDataStore.
Response body
If successful, the response body contains a newly created instance ofOperation.
[[["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-08-20 UTC."],[],[],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](/agentspace/docs/reference/rest/v1beta/projects.locations.collections.dataStores#DataStore).\n\nDataStore is for storing [Documents](/agentspace/docs/reference/rest/v1beta/projects.locations.collections.dataStores.branches.documents#Document). To serve these documents for Search, or Recommendation use case, an [Engine](/agentspace/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/*}/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](/agentspace/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](/agentspace/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)."]]