Method: selection.v1.projects.selectedRoutes.create

Creates a SelectedRoute and starts a schedule to periodically retrieve cache information for the route.

HTTP request

POST https://roads.googleapis.com/selection/v1/{parent=projects/*}/selectedRoutes

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

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

Query parameters

Parameters
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.

Request body

The request body contains an instance of SelectedRoute.

Response body

If successful, the response body contains a newly created instance of SelectedRoute.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform