Skip to main content
PUT
Update template

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

Body

application/json

Update a WhatsApp message template. Scramble reads these rules to document the request body. Mirrors the existing TemplateController::update validation.

template_name
string
required

Template name. Required.

Maximum string length: 191
category
string
required

Category — Meta numeric id (1/2/3), meta slug, or industry bucket. Required.

template_body
string
required

Body text. Required (max 4096 chars).

Maximum string length: 4096
template_type
enum<string> | null

Template type. Defaults to the existing value.

Available options:
standard,
carousel,
media,
auth
header
string | null

Optional header text (max 255 chars).

Maximum string length: 255

Optional footer text (max 255 chars).

Maximum string length: 255
language
string | null

Language code (e.g. en_US). Defaults to the existing value.

Maximum string length: 16
buttons
string | null

Buttons — CTA / quick-reply array (or parallel-array form).

quick_replies
string | null

Quick-reply buttons (folded into buttons[]).

Carousel cards payload (for carousel templates).

latitude
number | null

LOCATION header — send a map pin. Provide latitude + longitude (both required together) with an optional name + address.

Required range: -90 <= x <= 90
longitude
number | null
Required range: -180 <= x <= 180
location_name
string | null
Maximum string length: 191
location_address
string | null
Maximum string length: 255

Response

Successful response.

data
any[]
required
meta
string
required