FEATURE: Add user file move endpoint and support both personal and org workspace moves
This commit is contained in:
@@ -161,8 +161,11 @@ class FileService {
|
||||
String sourcePath,
|
||||
String targetPath,
|
||||
) async {
|
||||
final endpoint = orgId.isEmpty
|
||||
? '/user/files/move'
|
||||
: '/orgs/$orgId/files/move';
|
||||
await _apiClient.post(
|
||||
'/orgs/$orgId/files/move',
|
||||
endpoint,
|
||||
data: {'sourcePath': sourcePath, 'targetPath': targetPath},
|
||||
fromJson: (d) => null,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user