diff --git a/src/main/java/org/typesense/api/Key.java b/src/main/java/org/typesense/api/Key.java index 4aa035d..1388072 100644 --- a/src/main/java/org/typesense/api/Key.java +++ b/src/main/java/org/typesense/api/Key.java @@ -1,6 +1,7 @@ package org.typesense.api; import org.typesense.model.ApiKey; +import org.typesense.model.ApiKeyDeleteResponse; public class Key { @@ -16,8 +17,8 @@ public ApiKey retrieve() throws Exception { return this.apiCall.get(this.getEndpoint(), null, ApiKey.class); } - public ApiKey delete() throws Exception { - return this.apiCall.delete(this.getEndpoint(), null, ApiKey.class); + public ApiKeyDeleteResponse delete() throws Exception { + return this.apiCall.delete(this.getEndpoint(), null, ApiKeyDeleteResponse.class); } private String getEndpoint(){