/templates/{templateId}Update a template
Changes a template's content and variables, and an SMS template's name. Fields you leave out keep their value. SMS: a template Bind reviews changes only as a DRAFT or REJECTED (409 TEMPLATE_NOT_EDITABLE; create a new one instead). Where your brand publishes its own templates, anything but PENDING changes, and a LIVE template stays LIVE: if campaigns still send it, 409 TEMPLATE_IN_USE names them unless you send confirmActiveCampaigns: true, and their remaining messages carry the new text. WhatsApp: only components and variables change, never the name. Once Meta holds the template the change goes to Meta and the template is PENDING again. Scope portal:write.
Path parameters
templateIdstring (uuid)requiredThe template's UUID, the same the Channels API takes as
template.id.Example:
"7c1e9a52-4b0d-4f3e-9a61-2d8f5c0b3e17"
Headers
If-MatchstringThe
ETagfrom your lastGET. The change is refused with412if the resource changed since.Example:
"\"9b2f4c1e7a3d5b8f0c6e2a4d1f7b3c9e\""
Request body
application/merge-patch+jsonnamestring· min 1 chars· max 100 charsSMS only; a WhatsApp template keeps its name.
contentstring· max 2000 charsSMS only.
messageTypestringSMS only.
Values:MARKETINGTRANSACTIONALcomponentsarray of object· max 10 itemsWhatsApp only, the whole set, within the subset
TemplateCreate.componentsdescribes.The placeholders' fallbacks, sent to a contact without a value. Sent, the list replaces the template's. SMS: a contact field's (
first_name, ...) fallback is written into its placeholders; any other name is the template's own variable and needs atype(short_text,name,number,amount,date,time,reference,otp). WhatsApp: eachfallbackis that parameter's.confirmActiveCampaignsbooleanChange a
LIVESMS template even though campaigns still send it; their remaining messages carry the new text.
Responses
Ready to send your first message?
We set up your account, sender profiles and API key with you, and help you through the first integration.

