Pass the optional and required parameters as per the official API docs. See the DTO reference below for more information.
packagecom.example.myapp;importcom.unkey.unkeysdk.dto.KeyDeleteRequest;@RestControllerpublicclassAPIController{privatestaticIKeyService keyService =newKeyService();@DeleteMapping("/delete")publicResponseEntity<String>updateKey(@RequestBodyKeyDeleteRequest keyId,@RequestHeader("Authorization")String authToken){// Delegate the creation of the key to the KeyServicereturn keyService.deleteKey(authToken, keyId);}}