From aace2aaf8c71f8dbda09c289160b7db17ecee1fb Mon Sep 17 00:00:00 2001 From: Yevheniy Oliynyk Date: Wed, 13 Nov 2024 17:09:04 +0100 Subject: [PATCH] fix: app force uninstall --- .../com/crowdin/client/applications/ApplicationsApi.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/crowdin/client/applications/ApplicationsApi.java b/src/main/java/com/crowdin/client/applications/ApplicationsApi.java index 136bb5272..fdfb32af8 100644 --- a/src/main/java/com/crowdin/client/applications/ApplicationsApi.java +++ b/src/main/java/com/crowdin/client/applications/ApplicationsApi.java @@ -156,8 +156,15 @@ public ResponseObject installApplication(InstallApplica * */ public void deleteApplicationInstallation(String identifier) throws HttpException, HttpBadRequestException { + this.deleteApplicationInstallation(identifier, null); + } + + public void deleteApplicationInstallation(String identifier, Boolean force) throws HttpException, HttpBadRequestException { + Map> queryParams = HttpRequestConfig.buildUrlParams( + "force", Optional.ofNullable(force) + ); String builtUrl = String.format("%s/applications/installations/%s", this.url, identifier); - this.httpClient.delete(builtUrl, new HttpRequestConfig(), Void.class); + this.httpClient.delete(builtUrl, new HttpRequestConfig(queryParams), Void.class); } /**