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

Creates TargetSite in a batch.

HTTP request

POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/collections/*/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.