Creates a new version on the specified target site using the content of the specified version.
HTTP request
POST https://firebasehosting.googleapis.com/v1beta1/{parent=sites/*}/versions:clone
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent | 
                
                   
 Required. The target site for the cloned version, in the format: 
  | 
              
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
{ "sourceVersion": string, "finalize": boolean, // Union field  | 
                
| Fields | |
|---|---|
sourceVersion | 
                  
                     
 Required. The unique identifier for the version to be cloned, in the format: 
  | 
                
finalize | 
                  
                     
 If true, the call to  If false, the cloned version will have a status of   | 
                
Union field  
  | 
                |
include | 
                  
                     
 If provided, only paths that match one or more RegEx values in this list will be included in the new version.  | 
                
exclude | 
                  
                     
 If provided, only paths that do not match any of the RegEx values in this list will be included in the new version.  | 
                
Response body
If successful, the response body contains an instance of Operation.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/firebase.hostinghttps://www.googleapis.com/auth/firebasehttps://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
PathFilter
A representation of filter path.
| JSON representation | 
|---|
{ "regexes": [ string ] }  | 
              
| Fields | |
|---|---|
regexes[] | 
                
                   
 An array of RegEx values by which to filter.  |