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


The URL uses gRPC Transcoding syntax.

Path parameters



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 the following Google IAM permission on the specified resource name:

  • ml.models.update

Request body

The request body must be empty.

Response body

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

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.

이 페이지가 도움이 되었나요? 평가를 부탁드립니다.

다음에 대한 의견 보내기...

도움이 필요하시나요? 지원 페이지를 방문하세요.