class AcmMailTemplateConfigurationServiceAPIController {

    @RequestMapping(method = RequestMethod.PUT, consumes = { "multipart/mixed", MediaType.MULTIPART_FORM_DATA_VALUE })
    public ResponseEntity<?> updateEmailTemplate(@RequestPart("data") EmailTemplateConfiguration templateConfiguration,
            @RequestPart(value = "file", required = false) MultipartFile template) throws AcmEmailConfigurationException
    {
        mailService.updateEmailTemplate(templateConfiguration, template);
        return new ResponseEntity<>(HttpStatus.OK);
    }

}