@PostMapping(path = "{username}", produces = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Add device registration for username",
        parameters = {@Parameter(name = "username", required = true, description = "The username to look up"),
            @Parameter(name = "record", required = true, description = "The device registration record")})
    public boolean write(
        @PathVariable final String username,
        @RequestParam final String record) throws Exception {
        val json = EncodingUtils.decodeBase64ToString(record);
        val registration = WebAuthnUtils.getObjectMapper().readValue(json, CredentialRegistration.class);
        return registrationStorage.getObject().addRegistrationByUsername(username, registration);
    }
Write.

@param username the username
@param record   the record
@return true/false
@throws Exception the exception
support/cas-server-support-webauthn-core/src/main/java/org/apereo/cas/webauthn/web/WebAuthnRegisteredDevicesEndpoint.java