Join us at Google I/O from May 18 to 20 for discussions, learning, and a first look at our latest developer products. Register now.

Method: projects.versions.create

Creates a project version based on the model and triggers deployment to the specified release channel, if specified.

HTTP request

POST https://actions.googleapis.com/v2/{parent=projects/*}/versions:create

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource name in the format projects/{project}. The {project} is the cloud project ID associated with the project.

Request body

The request body contains data with the following structure:

JSON representation
{
  "files": {
    object (Files)
  },
  "releaseChannel": string
}
Fields
files

object (Files)

Required. List of files sent to the server at a time. This is a list of config files or data files. 1. The first request must be a ConfigFiles. 2. The first request must have a ConfigFile with 'settings'. 3. The first request must have a ConfigFile with 'manifest'.

releaseChannel

string

Optional. The release channel to deploy the version, if specified. The supported built in release channels are actions.channels.Production, actions.channels.ClosedBeta, actions.channels.Alpha. .

Response body

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