UpdateWhatsAppMessageTemplate
Source:
src/AWS/SocialMessaging/UpdateWhatsAppMessageTemplate.ts
Runtime binding for social-messaging:UpdateWhatsAppMessageTemplate.
Updates an existing WhatsApp message template on the bound account — its category or component JSON. Edits re-enter Meta review.
The deploy-time half grants social-messaging:UpdateWhatsAppMessageTemplate on the
bound WABA’s ARN and the runtime half injects the linked account id
into every request.
Provide the implementation with
Effect.provide(AWS.SocialMessaging.UpdateWhatsAppMessageTemplateHttp).
Managing Message Templates
Section titled “Managing Message Templates”// init — bind the operation to the linked WABAconst updateTemplate = yield* AWS.SocialMessaging.UpdateWhatsAppMessageTemplate(account);
// runtimeyield* updateTemplate({ metaTemplateId: "1234567890", templateComponents: new TextEncoder().encode( JSON.stringify([{ type: "BODY", text: "Order {{1}} delivered." }]), ),});