code: @PostMapping("/importFile")
    public ResponseEntity<String> importFile(
        HttpServletRequest request,
        @RequestParam(value = "file") MultipartFile file,
        @RequestParam(value = "entityTypeId", required = false) String entityTypeId,
        @RequestParam(value = "packageId", required = false) String packageId,
        @RequestParam(value = "metadataAction", required = false) String metadataAction,
        @RequestParam(value = "action", required = false) String action,
        @RequestParam(value = "notify", required = false) Boolean notify)
        throws URISyntaxException {
      ImportRun importRun;
      String filename;
      try {
        filename = getFilename(file.getOriginalFilename(), entityTypeId);
        File tmpFile;
        try (InputStream inputStream = file.getInputStream()) {
          tmpFile = fileStore.store(inputStream, filename);
        }
  
        if (packageId != null && !dataService.getMeta().getPackage(packageId).isPresent()) {
          return ResponseEntity.badRequest()
              .contentType(TEXT_PLAIN)
              .body(MessageFormat.format("Package [{0}] does not exist.", packageId));
        }
  
        importRun = importFile(request, tmpFile, metadataAction, action, notify, packageId);
      } catch (Exception e) {
        LOG.error(e.getMessage());
        return ResponseEntity.badRequest().contentType(TEXT_PLAIN).body(e.getMessage());
      }
      return createCreatedResponseEntity(importRun);
    }
docs: Imports entities present in the submitted file
  
  @param file File containing entities. Can be VCF, VCF.gz, or EMX
  @param entityTypeId Only for VCF and VCF.gz. If set, uses this ID for the table name. Is
  ignored when uploading EMX
  @param packageId Only for VCF and VCF.gz. If set, places the VCF under the provided package. Is
  ignored when uploading EMX. If not set, uses the default package 'base'. Throws an error
  when the supplied package does not exist
  @param action Specifies the import method. Supported: ADD, ADD_UPDATE
  @param notify Should admin be notified when the import fails?
  @return ResponseEntity containing the API URL with the current import status