Method: projects.models.versions.patch

Updates the specified Version resource.

Currently the only supported field to update is description.

HTTP request


The URL uses Google API HTTP annotation syntax.

Path parameters



Required. The name of the model.

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

  • ml.versions.update

Query parameters


string (FieldMask format)

Required. Specifies the path, relative to Version, of the field to update. Must be present and non-empty.

For example, to change the description of a version to "foo", the updateMask parameter would be specified as description, and the PATCH request body would specify the new value, as follows: { "description": "foo" } In this example, the version is blindly overwritten since no etag is given.

To adopt etag mechanism, include etag field in the mask, and include the etag value in your version resource.

Currently the only supported update masks are description, and etag.

A comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of Version.

Response body

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

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Auth Guide.

Send feedback about...

Cloud Machine Learning Engine (Cloud ML Engine)