setNameFile method
Rename your file
Implementation
Future<Map> setNameFile({
required String file_code,
required String title,
String? apiKey,
}) async {
Map result = await invoke(
uriPath: "file/rename",
uriQueryParameters: {
"file_code": DoodstreamUtils.parseToFileId(data: file_code),
"title": title,
},
apiKey: apiKey,
statusCodes: [200],
specialTypeName: "uploadRemoteUrl",
);
return result;
}