Skip to main content
PUT
Update a template

Authorizations

Authorization
string
header
required

HTTP Basic where username is your account e-mail and password is your security token.

Body

template_id
integer
required
body_text
string
header_text
string
variable_examples
string[]
header_media
file

Replacement sample media for IMAGE/DOCUMENT headers. PHP does not parse multipart on a PUT

header_media_base64
string

Replacement sample media as a base64 string. This is the working path on PUT.

header_media_url
string

Replacement sample media already stored — S3 path or public URL. Also works on PUT.

header_media_filename
string

File name presented to Meta alongside header_media_base64 / header_media_url.

Response

Updated — the template is resubmitted to Meta and returns to pending

Envelope used by the WhatsApp template endpoints and template sync.

code
integer
Example:

200

status
string
Example:

"success"

message
string | null
data
object
request_id
string