Required. The target site for the cloned version, in the format:
sites/SITE_ID
Request body
The request body contains data with the following structure:
JSON representation
{"sourceVersion": string,"finalize": boolean,// Union field filter can be only one of the following:"include": {object (PathFilter)},"exclude": {object (PathFilter)}// End of list of possible types for union field filter.}
Fields
sourceVersion
string
Required. The unique identifier for the version to be cloned, in the format:
sites/SITE_ID/versions/VERSION_ID
finalize
boolean
If true, the call to versions.clone immediately finalizes the version after cloning is complete.
If false, the cloned version will have a status of CREATED. Use versions.patch to set the status of the version to FINALIZED.
[[["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 2023-09-11 UTC."],[],[],null,["Creates a new version on the specified target site using the content of the specified version.\n\nHTTP request\n\n`POST https://firebasehosting.googleapis.com/v1beta1/{parent=sites/*}/versions:clone`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\nRequest body\n\nThe request body contains data with the following structure:\n\nResponse body\n\nIf successful, the response body contains an instance of [Operation](/docs/reference/hosting/rest/v1beta1/projects.operations#Operation).\n\nAuthorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/firebase.hosting`\n- `\n https://www.googleapis.com/auth/firebase`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\nPathFilter A representation of filter path."]]