- HTTP request
 - Path parameters
 - Request body
 - Response body
 - Authorization scopes
 - CreateSelectedRouteRequest
 
Creates multiple SelectedRoutes and starts a schedule to periodically retrieve cache information for each of the routes.
HTTP request
POST https://roads.googleapis.com/selection/v1/{parent=projects/*}/selectedRoutes:batchCreate
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent | 
                
                   
 Optional. The project resource shared by all selected routes. Format: projects/{project} If this is set, the parent field in the CreateSelectedRouteRequest messages must either be empty or match this field.  | 
              
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
{
  "requests": [
    {
      object ( | 
                
| Fields | |
|---|---|
requests[] | 
                  
                     
 Required. The request message specifying the selected route to create. A maximum of 1000 selected routes can be created in a batch.  | 
                
Response body
Response from creating multiple SelectedRoutes.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
{
  "selectedRoutes": [
    {
      object ( | 
                  
| Fields | |
|---|---|
selectedRoutes[] | 
                    
                       
 SelectedRoutes created.  | 
                  
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
CreateSelectedRouteRequest
Request to create a SelectedRoute.
| JSON representation | 
|---|
{
  "parent": string,
  "selectedRoute": {
    object ( | 
              
| Fields | |
|---|---|
parent | 
                
                   
 Required. The project that the   | 
              
selectedRoute | 
                
                   
 Required. The   | 
              
selectedRouteId | 
                
                   
 Optional. The ID to use for the  This value should be 4-63 characters, and valid characters are: "a-z", "A-Z", "0-9" or "-". If it is not provided or empty, a UUID will be generated after resource creation.  |