patch
https://{defaultHost}/api/v4/messaging/whatsapp_templates/
Updates the fields sent; the rest keep their values. header, footer and buttons are each replaced whole, and null removes one. Rules are those of the Message templates page. Read-only fields, such as status, are ignored.
What can change depends on the status:
pending: nothing. Answers409.rejected: any part sent. The template returns topendingand is submitted for review again.approved: only the Default media, as a new file or location in aheaderof the same type. The template staysapprovedand is not submitted again. Any other change answers422.
name, category, language and channel_profile_id never change: a value other than the stored one answers 422. A template of a Tyntec channel profile cannot be updated.
New file. A request with a new file in header.url answers 202 and returns the template unchanged. The file is fetched after the response, then the whole request is applied. No field reports the result:
- Applied: a later read shows the template as sent, including
header.file_name. - Not applied: the template still differs 15 minutes after the request. Nothing was changed; send the request again.
- A change to the template by anyone else before the request is applied cancels it.
- Send one file update per template at a time. Of two in progress, only the first to finish is applied.
Requires the messaging.whatsapp_templates.manage scope.