Method: projects.models.versions.setDefault

Designates a version to be the default for the model.

The default version is used for prediction requests made against the model that don't specify a version.

The first version to be created for a model is automatically set as the default. You must make any subsequent changes to the default version setting manually using this method.

HTTP request

POST https://ml.googleapis.com/v1/{name=projects/*/models/*/versions/*}:setDefault

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
name

string

Required. The name of the version to make the default for the model. You can get the names of all the versions of a model by calling projects.models.versions.list.

Authorization: requires Editor role on the parent project.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Version.

Authorization

Requires the following OAuth scope:

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

For more information, see the Auth Guide.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Machine Learning Engine (Cloud ML Engine)