moveFile method

Future<Map> moveFile({
  1. required String file_code,
  2. required String to_folder_id,
  3. String? apiKey,
})

Move your file from one folder to another

DOCS: https://doodstream.com/api-docs#files-copy

Implementation

Future<Map> moveFile({
  required String file_code,
  required String to_folder_id,
  String? apiKey,
}) async {
  Map result = await invoke(
    uriPath: "file/move",
    uriQueryParameters: {
      "file_code": DoodstreamUtils.parseToFileId(data: file_code),
      "fld_id": to_folder_id,
    },
    apiKey: apiKey,
    statusCodes: [200],
    specialTypeName: "uploadRemoteUrl",
  );

  return result;
}