whatsapp
Update template
Update a message template's components. Only certain fields can be updated depending on the template's current approval state. Approved templates can only have components updated.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
templateNamestring
Template name
accountIdstring
WhatsApp social account ID
components
Updated template components
Response Body
application/json
application/json
application/json
curl -X PATCH "https://zernio.com/api/v1/whatsapp/templates/string" \ -H "Content-Type: application/json" \ -d '{ "accountId": "507f1f77bcf86cd799439011", "components": [ { "type": "body", "text": "Updated: Your order {{1}} is confirmed. Delivery by {{2}}" } ] }'{
"success": true,
"template": {
"id": "string",
"name": "string",
"status": "string"
}
}Empty
{
"error": "Unauthorized"
}{
"error": "Not found"
}