Creates a batch of dataObjects.
HTTP request
POST https://vectorsearch.googleapis.com/v1/{parent}/dataObjects:batchCreate
Path parameters
| Parameters | |
|---|---|
parent |
Required. The resource name of the Collection to create the DataObjects in. Format: |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"requests": [
{
object ( |
| Fields | |
|---|---|
requests[] |
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 DataObjectService.BatchCreateDataObjects.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"dataObjects": [
{
object ( |
| Fields | |
|---|---|
dataObjects[] |
DataObjects created. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
vectorsearch.dataObjects.create
For more information, see the IAM documentation.
CreateDataObjectRequest
Request message for DataObjectService.CreateDataObject.
| JSON representation |
|---|
{
"parent": string,
"dataObjectId": string,
"dataObject": {
object ( |
| Fields | |
|---|---|
parent |
Required. The resource name of the Collection to create the DataObject in. Format: |
dataObjectId |
Required. The id of the dataObject to create. The id must be 1-63 characters long, and comply with RFC1035. Specifically, it must be 1-63 characters long and match the regular expression |
dataObject |
Required. The DataObject to create. |