- HTTP request
 - Path parameters
 - Request body
 - Response body
 - Authorization scopes
 - IAM Permissions
 - CreateTargetSiteRequest
 
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 | 
                
                   
 Required. The parent resource shared by all TargetSites being created.   | 
              
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 20 TargetSites can be created in a batch.  | 
                
Response body
If successful, the response body contains an instance of Operation.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/discoveryengine.readwrite
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 ( | 
              
| Fields | |
|---|---|
parent | 
                
                   
 Required. Parent resource name of   | 
              
targetSite | 
                
                   
 Required. The   |