Templates
Update a template
PUT
Replace a template. Send the complete template every time.
HTTPBearerheader
AuthorizationBearer <token>phone_number*stringYour WhatsApp number, digits only, e.g. 393401234567.
template_id*stringID of the template.
application/json- body
name*stringLowercase letters, digits and underscores.
language*stringLanguage code, e.g. it or en_US.
category*TemplateCategoryValue in
"UTILITY""AUTHENTICATION""MARKETING"components*array<>HEADER, BODY, FOOTER and BUTTONS, in WhatsApp's template format.
[key: string]?anyOK
application/json- response
WhatsApp's response, passed through unchanged.
[key: string]?anycurl -X PUT 'https://api.wapiu.ai/v1/numbers/393401234567/templates/1234567890123456' \ -H 'Content-Type: application/json' \ -d '{ "name": "order_shipped", "language": "it", "category": "UTILITY", "components": [ { "type": "BODY", "text": "Ciao {{1}}, il tuo ordine {{2}} è in viaggio.", "example": { "body_text": [ [ "Mario", "A1234" ] ] } } ]}'Example Response
{}