Skip to main content
Version: 5.7.0

MoveUserToGroupFile

Move a file from user space to group space.

ServiceOperation
groupFileMOVE_USER_TO_GROUP_FILE

Method Parameters

ParameterDescription
userCloudPathThe user file folder.
userCloudFilenameThe user file name.
groupIdThe id of the group.
groupTreeIdThe id of the destination folder.
groupFilenameThe group file name.
overwriteIfPresentWhether to allow overwrite of an existing file if present.
groupFileAclThe acl of the new group file.

Usage

http://localhost:3000
string userCloudPath = "dir1/dir2";
string userCloudFilename = "file";
string groupId = "dfsfsffsd";
string groupTreeId = "gpath";
string groupFilename = "gfile";
bool overwriteIfPresent = true;
string groupFileAcl = "{ \"member\": 2, \"other\": 0 }";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.GroupFileService.MoveUserToGroupFile(userCloudPath, userCloudFilename, groupId, groupTreeId, groupFilename, overwriteIfPresent, groupFileAcl, successCallback, failureCallback);
JSON Response
{
"data": {
"fileDetails": {
"treeId": "40479c72-b46b-4c05-902c-239ada116acd",
"fileName": "glog1.json",
"fileSize": 8199,
"dateUploaded": 1677526746000,
"etag": "93acc8568cee7d0d0836ff6b63b549ab",
"acl": {
"member": 2,
"other": 0
},
"version": 1,
"url": "https://api.internal.braincloudservers.com/groupfiles/bc/g/23782/gr/2bf538d1-19ea-4e14-9862-f979215e09b7/40479c72-b46b-4c05-902c-239ada116acd/4c924070-db15-47d4-a44a-be496bb49f66/V1/glog1.json",
"fileId": "4c924070-db15-47d4-a44a-be496bb49f66"
},
"groupId": "2bf538d1-19ea-4e14-9862-f979215e09b7"
},
"status": 200
}