Update template
PATCH/message-server/whatsapp/templates/:templateId
Updates an existing template and submits it to Meta again: status goes back to PENDING.
- The request replaces the whole content: header, body, footer and buttons are rebuilt from the fields you send, so send again the parts you want to keep.
categorycannot be changed once the template isAPPROVED.- 24-hour limit: an
APPROVEDtemplate cannot be updated within 24 hours of its last update.
Tracked URL buttons are the exception: an update does not change where they redirect. To change the destination of a tracked button and keep it tracked, create a new template.
What an update does to tracked URL buttons
- Destinations are recorded once: when the URL buttons are first tracked, at creation or by the first update with
trackButtonLinks: true. - A later update with
trackButtonLinks: trueappends the new URLs tooriginalButtonUrlsinstead of replacing them. A button whose URL you change keeps redirecting to the old destination, and added or reordered URL buttons redirect to the wrong URL. - An update without
trackButtonLinks: truestops the tracking: the URL buttons open the URLs you sent.
Request
Responses
- 200
- 400
- 404
Template updated
Invalid request. data carries the error code, an object with message and errors, or the invalid fields with their messages.
Template not found in your account