Method: selection.v1.projects.selectedRoutes.batchCreate

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

string

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 (CreateSelectedRouteRequest)
    }
  ]
}
Fields
requests[]

object (CreateSelectedRouteRequest)

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 (SelectedRoute)
    }
  ]
}
Fields
selectedRoutes[]

object (SelectedRoute)

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 (SelectedRoute)
  },
  "selectedRouteId": string
}
Fields
parent

string

Required. The project that the SelectedRoute will be created under. Format: projects/{project}

selectedRoute

object (SelectedRoute)

Required. The SelectedRoute to create.

selectedRouteId

string

Optional. The ID to use for the SelectedRoute, which will become the final component of the SelectedRoute's resource name.

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.