@PostMapping(path = "/import", consumes = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Import a single trusted device record as a JSON document in the request body")
    public ResponseEntity importDevice(final HttpServletRequest request) throws Exception {
        val requestBody = IOUtils.toString(request.getInputStream(), StandardCharsets.UTF_8);
        LOGGER.trace("Submitted record: [{}]", requestBody);
        val deviceRec = MAPPER.readValue(requestBody, new TypeReference<MultifactorAuthenticationTrustRecord>() {
        });
        LOGGER.trace("Storing device record: [{}]", deviceRec);
        val created = mfaTrustEngine.getObject().save(deviceRec);
        return ResponseEntity.status(HttpStatus.CREATED).body(created);
    }
Import device record.

@param request the request
@return the response entity
@throws Exception the exception
support/cas-server-support-trusted-mfa-core/src/main/java/org/apereo/cas/trusted/web/MultifactorAuthenticationTrustedDevicesReportEndpoint.java