Method: projects.models.versions.create

Creates a new version of a model from a trained TensorFlow model.

If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not automatically change. If you want a new version to be the default, you must call projects.models.versions.setDefault.

HTTP request

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

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
parent

string

Required. The name of the model.

Authorization requires the following Google IAM permission on the specified resource parent:

  • ml.versions.create

Request body

The request body contains an instance of Version.

Response body

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

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Machine Learning Engine (Cloud ML Engine)