# Method: projects.locations.collections.dataObjects.batchCreate

Creates a batch of dataObjects.

### HTTP request

`POST https://vectorsearch.googleapis.com/v1beta/{parent}/dataObjects:batchCreate`

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. The resource name of the Collection to create the DataObjects in. Format: `projects/{project}/locations/{location}/collections/{collection}`. The parent field in the CreateDataObjectRequest messages must match this field. |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "requests": [ { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/vector-search-2/reference/rest/v1beta/projects.locations.collections.dataObjects/batchCreate#CreateDataObjectRequest`) } ] } ``` |

| Fields ||
|---|---|
| `requests[]` | ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/vector-search-2/reference/rest/v1beta/projects.locations.collections.dataObjects/batchCreate#CreateDataObjectRequest`)`` Required. The request message specifying the resources to create. A maximum of 1000 DataObjects can be created in a batch. |

### Response body

Response message for `https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/vector-search-2/reference/rest/v1beta/projects.locations.collections.dataObjects/batchCreate#google.cloud.vectorsearch.v1beta.DataObjectService.BatchCreateDataObjects`.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "dataObjects": [ { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/vector-search-2/reference/rest/v1beta/projects.locations.collections.dataObjects#DataObject`) } ] } ``` |

| Fields ||
|---|---|
| `dataObjects[]` | ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/vector-search-2/reference/rest/v1beta/projects.locations.collections.dataObjects#DataObject`)`` Output only. DataObjects created. |

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:

- `vectorsearch.dataObjects.create`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).

## CreateDataObjectRequest

Request message for `https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/vector-search-2/reference/rest/v1beta/projects.locations.collections.dataObjects/create#google.cloud.vectorsearch.v1beta.DataObjectService.CreateDataObject`.

| JSON representation |
|---|
| ``` { "parent": string, "dataObjectId": string, "dataObject": { object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/vector-search-2/reference/rest/v1beta/projects.locations.collections.dataObjects#DataObject`) } } ``` |

| Fields ||
|---|---|
| `parent` | `string` Required. The resource name of the Collection to create the DataObject in. Format: `projects/{project}/locations/{location}/collections/{collection}` |
| `dataObjectId` | `string` Required. The id of the dataObject to create. The id must be 1-63 characters long, and comply with [RFC1035](https://www.ietf.org/rfc/rfc1035.txt). Specifically, it must be 1-63 characters long and match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`. |
| `dataObject` | ``object (`https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/vector-search-2/reference/rest/v1beta/projects.locations.collections.dataObjects#DataObject`)`` Required. The DataObject to create. |