Skip to main content
Version: 5.7.0

SysCopyGlobalFile

Makes a copy of the specified file.

ServiceOperation
globalFileV3SYS_COPY_GLOBAL_FILE

Method Parameters

ParameterDescription
fileIdThe file id
versionThe current version of the file
newTreeIdThe location in the tree for the new file. Use emptystring for root.
treeVersionThe current version of the tree
newFilenameThe filename to use for the copied file
overwriteIfPresentSet to true to overwrite an existing file if present.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"status": 200,
"data": {
"fileDetails": {
"fileId": "8d2e30b0-6308-4aeb-ac6a-68e4a458365b",
"treeId": "",
"fileName": "testFile3.txt",
"contentMd5": "ruSnJhFo5VpcvrWdweyeaw==",
"fileSize": 19,
"dateUploaded": 1587692400000,
"etag": "aee4a7261168e55a5cbeb59dc1ec9e6b",
"version": 1,
"url": "https://api.braincloudservers.com/files/bc/g/21774/f/8d2e30b0-6308-4aeb-ac6a-68e4a458365b/V1/testFile3.txt"
}
}
}