setNameFile method

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

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;
}