Edit a template
POST
/{template_id}Changes a template's content, its category, or both. The edited template goes back to review, and you can't send it until it's approved again.
- Only templates that are
APPROVED,REJECTEDorPAUSEDcan be edited. - An approved template can be edited once a day, and up to 10 times in 30 days.
- The name and language can't change. To rename, create a new template.
- Send the complete new list of components, not just the parts that change.
Authorization
apiKey apikey<token>
Your HostMentor API key, from the dashboard under Messaging → WhatsApp → API keys.
In: header
Path Parameters
template_id*string
ID of the template, returned when you create or list templates.
Request Body
application/json
Send the new components, a new category, or both. Only a template that is APPROVED, REJECTED or PAUSED can be edited.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://wa.hostmentor.com/v3/594425479261596" \ -H "apikey: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "components": [ { "type": "BODY", "text": "Hi {{1}}, your order {{2}} has shipped and arrives {{3}}.", "example": { "body_text": [ [ "Priya", "#1042", "tomorrow" ] ] } }, { "type": "FOOTER", "text": "Reply STOP to opt out" } ] }'{ "success": true}