Update a template
Templates
Update Template
Update an existing template. Supports the same payload structure as template creation.
POST
Update a template
Overview
Update an existing WhatsApp message template. The template will be resubmitted to Meta for review.- Language cannot be changed after template creation
- Category may be restricted for approved templates
- Media file only required when changing media type
- Template status changes to
UPDATINGduring review
Request Body Schema
Same as Create Template, with these differences:| Field | Update Restrictions |
|---|---|
language | Cannot be changed (must match original) |
category | May be locked if template is approved |
header.media.file | Required only when changing header.media.type |
Example Payloads
Update Text Content Only
Update Header Media Type
When changing media type (e.g., from image to video), the file is required:Keep Same Media Type
When keeping the same media type, file is optional:Add Buttons to Existing Template
Response
Success (200 OK)
Validation Error (422)
Template Status Flow
After updating:- PENDING → Template without
provider_id(treated as new creation) - UPDATING → Existing template resubmitted for review
- APPROVED → After Meta approval
- REJECTED → If Meta rejects the changes
Common Update Scenarios
Changing Template Text
Changing Template Text
Update
body.text and adjust body.variables array to match new placeholders:Removing Header
Removing Header
Set
header to null or omit it:Changing Button URLs
Changing Button URLs
Adding/Removing Footer
Adding/Removing Footer
Important Notes
For complete payload examples, see TEMPLATE_PAYLOADS.md.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the workspace.
ID of the template.
Body
application/json
Example:
"login_otp_template"
Language cannot be changed after creation
Example:
"en"
Category may be restricted based on template status
Available options:
MARKETING, UTILITY, AUTHENTICATION Option 2: Text Header
- Option 1
- Option 2
Maximum string length:
60Required for AUTHENTICATION category
Required for AUTHENTICATION category
Required range:
1 <= x <= 1440Required for AUTHENTICATION category