diff --git a/src/main/java/com/whatsapp/api/impl/WhatsappBusinessManagementApi.java b/src/main/java/com/whatsapp/api/impl/WhatsappBusinessManagementApi.java index 620c3cd97..4faa91a49 100644 --- a/src/main/java/com/whatsapp/api/impl/WhatsappBusinessManagementApi.java +++ b/src/main/java/com/whatsapp/api/impl/WhatsappBusinessManagementApi.java @@ -67,14 +67,13 @@ public Template createMessageTemplate(String whatsappBusinessAccountId, MessageT /** * Update message template message template id response. * - * @param whatsappBusinessAccountId the whatsapp business account id * @param messageTemplateId the message template id * @param messageTemplate the message template * @return the message template id response */ - public Template updateMessageTemplate(String whatsappBusinessAccountId, String messageTemplateId, MessageTemplate messageTemplate) { + public Template updateMessageTemplate(String messageTemplateId, MessageTemplate messageTemplate) { - return executeSync(whatsappBusinessManagementApiService.updateMessageTemplate(apiVersion.getValue(), whatsappBusinessAccountId, messageTemplateId, messageTemplate)); + return executeSync(whatsappBusinessManagementApiService.updateMessageTemplate(apiVersion.getValue(), messageTemplateId, messageTemplate)); } /** diff --git a/src/main/java/com/whatsapp/api/service/WhatsappBusinessManagementApiService.java b/src/main/java/com/whatsapp/api/service/WhatsappBusinessManagementApiService.java index 13e690041..be6945f44 100644 --- a/src/main/java/com/whatsapp/api/service/WhatsappBusinessManagementApiService.java +++ b/src/main/java/com/whatsapp/api/service/WhatsappBusinessManagementApiService.java @@ -34,13 +34,12 @@ public interface WhatsappBusinessManagementApiService { /** * Update message template call. * - * @param whatsappBusinessAccountId the whatsapp business account id * @param messageTemplateId the message template id * @param messageTemplate the message template * @return the call */ - @POST("/{api-version}/{whatsapp-business-account-ID}/message_templates/{message-template-id}") - Call