Update a message template
Update a message template. This is a partial update: a field you omit keeps its stored value. Only a template still in draft can be updated, with one exception: on an approved template where WhatsApp rejected a language, you can fix the text of the rejected variants, with the same variables, and the variable_examples. The fix applies to every channel at once and is sent back to WhatsApp for review.
In order to get access to this endpoint, contact our support team.
channels, variants and countries are replaced as a whole when you send them.
Only a template still in draft can be updated. Once it is submitted, a change is refused with template_not_editable, because a template under review or already registered with providers cannot change underneath that process.
Fixing a language WhatsApp rejected
On an approved template whosechannels include whatsapp, WhatsApp reviews every language on its own, and can reject one. The whatsapp object of that variant then shows rejected with a rejection_reason.
You can fix it without creating a new template. Send all the variants, with a new text only for the rejected ones, and variable_examples if needed. The new text must use the same variables as before, and every variable keeps a sample value in variable_examples, or the fix is refused with invalid_template. The template stays approved:
- The new text applies at once, on every channel, SMS included.
- The rejected languages are sent back to WhatsApp for review. Their
whatsapp.statusmoves topending, then toapprovedorrejected.
template_not_editable. To change the wording of an approved language, create a new template and delete the old one.
Limits
Creating, updating, deleting and submitting templates share a limit of 100 calls per account in a 24-hour window. The window starts with the first of these calls and resets 24 hours later. A call over the limit is refused with429 too_many_configuration_changes. A call refused for another reason, such as an invalid template, does not count.Authorizations
Body
A partial update. Every field is optional, and a field you omit keeps its stored value.
One sample value per {{variable}} of the variants. WhatsApp requires a sample for every variable to review the template, so set them on a template whose channels include whatsapp. Every key must be a variable used in the variants. Replaces the stored examples; when omitted, the examples of variables you removed are dropped.
Response
OK
Where the template stands in the approval flow. Possible values are:
draft- Yours to edit. Nothing is sent with it yet.pending- Submitted, and waiting on our review and on the per-country registrations.ready- Approved and usable in every country you asked for.rejected- Refused. Contact support for the reason.
draft, pending, ready, rejected