Method: projects.versions.create
Stay organized with collections
Save and categorize content based on your preferences.
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'. 4. The webhook ConfigFile corresponding to inline cloud function must be streamed before the DataFile corresponding to its source code.
|
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
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["Creates a new project version and optionally deploys it to a specified release channel."],["Requires a POST request to the provided URL with project ID in the path."],["The request body must include necessary configuration and data files, with specific requirements for the initial request."],["Optionally, specify the release channel for deployment within the request body."],["A successful response returns details about the created version."]]],["This outlines the process to create a project version and deploy it. A `POST` request is sent to `https://actions.googleapis.com/v2/{parent=projects/*}/versions:create`, with the `parent` path parameter specifying the project ID. The request body requires a JSON structure that includes a list of `files`, such as config and data files, and an optional `releaseChannel` to direct the deployment. A successful request returns a `Version` instance in the response body.\n"]]