Method: projects.locations.dataStores.siteSearchEngine.targetSites.batchCreate

Creates TargetSite in a batch.

HTTP request

POST https://discoveryengine.googleapis.com/v1/{parent=projects/*/locations/*/dataStores/*/siteSearchEngine}/targetSites:batchCreate

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource shared by all TargetSites being created. projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}/siteSearchEngine. The parent field in the CreateBookRequest messages must either be empty or match this field.

Request body

The request body contains data with the following structure:

JSON representation
{
  "requests": [
    {
      object (CreateTargetSiteRequest)
    }
  ]
}
Fields
requests[]

object (CreateTargetSiteRequest)

Required. The request message specifying the resources to create. A maximum of 20 TargetSites can be created in a batch.

Response body

If successful, the response body contains an instance of Operation.

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:

  • discoveryengine.targetSites.batchCreate

For more information, see the IAM documentation.

CreateTargetSiteRequest

Request message for SiteSearchEngineService.CreateTargetSite method.

JSON representation
{
  "parent": string,
  "targetSite": {
    object (TargetSite)
  }
}
Fields
parent

string

Required. Parent resource name of TargetSite, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}/siteSearchEngine.

targetSite

object (TargetSite)

Required. The TargetSite to create.