Skip to main content
Version: 5.7.0

SysMoveGlobalFile

Move or rename the specified file.

ServiceOperation
globalFileV3SYS_MOVE_GLOBAL_FILE

Method Parameters

ParameterDescription
fileIdFile ID
versionFile version
newTreeIdId of the new location for the file
treeVersionCurrent tree version (used to prevent concurrency errors)
newFilenameNew name for the file
overwriteIfPresentIf a file of that name already exists at that location, overwrite it?

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"status": 200,
"data": {
"fileId": "b0cc8e28-ab5d-4a6c-94c3-476549128eaa",
"treeId": "2188e9cf-27fa-4a33-8d06-3306f9a74bf8",
"fileName": "testFile1.txt",
"contentMd5": "ruSnJhFo5VpcvrWdweyeaw==",
"fileSize": 19,
"dateUploaded": 1587694790000,
"etag": "aee4a7261168e55a5cbeb59dc1ec9e6b",
"version": 1,
"url": "https://api.braincloudservers.com/files/bc/g/21774/f/2188e9cf-27fa-4a33-8d06-3306f9a74bf8/b0cc8e28-ab5d-4a6c-94c3-476549128eaa/V1/testFile1.txt"
}
}