Update WhatsApp template

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. Answers 409.
  • rejected: any part sent. The template returns to pending and is submitted for review again.
  • approved: only the Default media, as a new file or location in a header of the same type. The template stays approved and is not submitted again. Any other change answers 422.

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.

Path Params
uuid
required

The unique identifier of the WhatsApp template.

Body Params

Only the fields sent change. header, footer and buttons are each replaced whole; null removes one.

string

Template name. Cannot be changed: a value other than the stored one answers 422.

string

Template category. Cannot be changed: a value other than the stored one answers 422.

string

Template language. Cannot be changed: a value other than the stored one answers 422.

string
length ≤ 1024

Body text. May hold placeholders such as {{1}}.

integer

Channel profile of the template. Cannot be changed: a value other than the stored one answers 422.

header
object | null

Replaces the stored header. A header of the same type without url or coordinates keeps the Default media, and so does a url copied from a read; another file or location type requires new Default media. Category MARKETING or UTILITY only.

buttons
array of objects | null

Replace the stored buttons. Quick replies first; at most 2 url and 1 phone. Category MARKETING or UTILITY only.

buttons
Responses

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json