Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Template Error #212

Open
jhsiqueira13 opened this issue Sep 13, 2024 · 1 comment
Open

Update Template Error #212

jhsiqueira13 opened this issue Sep 13, 2024 · 1 comment

Comments

@jhsiqueira13
Copy link

jhsiqueira13 commented Sep 13, 2024

Hi, i try to do a update in a Whatsapp Template, and i have received this error:
ex = (com.whatsapp.api.exception.WhatsappApiException) com.whatsapp.api.exception.WhatsappApiException: Unknown path components: /2798878760278631

in documentation of whatsapp graph api have this for update message template:
https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates/
in edition section:
POST /<WHATSAPP_MESSAGE_TEMPLATE_ID>
example:
curl 'https://graph.facebook.com/v20.0/564750795574598'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer EAAJB...'
-d '........

We need send only the message-template-id. Don´t need the whatsapp-business-account-ID

in class: WhatsappBusinessManagementApiService:

@POST("/{api-version}/{whatsapp-business-account-ID}/message_templates/{message-template-id}")
Call<Template> updateMessageTemplate(@Path("api-version") String apiVersion, @Path("whatsapp-business-account-ID") String whatsappBusinessAccountId, @Path("message-template-id") String messageTemplateId, @Body MessageTemplate messageTemplate);

i change for:

@POST("/{api-version}/{message-template-id}")
Call<Template> updateMessageTemplate(@Path("api-version") String apiVersion, @Path("message-template-id") String messageTemplateId, @Body MessageTemplate messageTemplate);

And update template works.

thanks and congratulations for the project is amazing.

Copy link

Hello and welcome! We're glad to see that you've opened your first issue. We appreciate your contribution and would love to hear more about the problem you're experiencing. Our team is actively monitoring this repository and we will do our best to respond to your issue as soon as possible. Thank you for using our project and we look forward to working with you!

@jhsiqueira13 jhsiqueira13 changed the title Update Template error in v20 version Update Template Error Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant