Skip to main content
Version: 5.7.0

SysMoveToGlobalFile

Copies the specified User File to the Global File V3 system.

ServiceOperation
globalFileV3SYS_MOVE_TO_GLOBAL_FILE

Method Parameters

ParameterDescription
userProfileIdProfileId of the user to copy the file from
userCloudPathDirectory of the file in User Files
userCloudFilenameFilename of the user file
globalTreeIdTreeId to move the file to
globalFilenameFilename to use in global files
overwriteIfPresentOverwrite the file if it already exists?

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"status": 200,
"data": {
"fileId": "34abacc5-c048-4bcc-a3ce-8eb751a718a6",
"treeId": "",
"fileName": "testFile3.txt",
"contentMd5": "2mmQd5nAOUhpptej1Gf5wA==",
"fileSize": 20,
"dateUploaded": 1587695812000,
"etag": "da69907799c0394869a6d7a3d467f9c0",
"version": 1,
"url": "https://api.braincloudservers.com/files/bc/g/21774/f/34abacc5-c048-4bcc-a3ce-8eb751a718a6/V1/testFile3.txt"
}
}