@PostMapping(path = "/import", consumes = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Import a consent decision as a JSON document")
    public ResponseEntity importAccount(final HttpServletRequest request) throws Throwable {
        try (val is = request.getInputStream()) {
            val requestBody = IOUtils.toString(is, StandardCharsets.UTF_8);
            LOGGER.trace("Submitted account: [{}]", requestBody);
            val decision = MAPPER.readValue(requestBody, new TypeReference<ConsentDecision>() {
            });
            LOGGER.trace("Storing account: [{}]", decision);
            consentRepository.getObject().storeConsentDecision(decision);
            return ResponseEntity.status(HttpStatus.CREATED).build();
        }
    }
Import account.

@param request the request
@return the http status
@throws Exception the exception
support/cas-server-support-consent-core/src/main/java/org/apereo/cas/consent/AttributeConsentReportEndpoint.java