Saves the whole draft of a WhatsApp template. Text, category and language unchanged from its newest version: only the name is saved and nothing goes to Meta. Otherwise the change is made and submitted to Meta as the pending version (replacing a change already waiting); the live version is not touched and keeps being sent until Meta approves the change. Safe to repeat. Returns the template, with usedBy. The same 400s and 409s as creating; 409 too when workflow steps send the template and the change alters how many placeholders it has (the message names them and says to make a new template instead); 404 for a template the practice does not have.
Requires: Admin on Messaging.
Parameters
| Name | Type | Description |
|---|---|---|
| tenant* | path string | The Tenant.Code |
The Tenant.Code |
||
| id* | path string (uuid) | |
Request Body*
{
"friendlyName": "string",
"language": "string",
"category": "Utility",
"body": "string",
"samples": {}
}
Responses
400 Bad Request
401 Unauthorized – Invalid or missing API key
403 Forbidden – the caller lacks the permissions this endpoint requires; the detail lists every one missing
application/problem+json
404 Not Found
409 Conflict
503 Service Unavailable