Skip to main content
PATCH
Edit a WhatsApp template
Send only the fields you are changing. After an edit the template goes back to PENDING until Meta approves it; a send that uses it in the meantime is refused with 422 template_pending. Meta’s own limits on how often a template can be edited come back as 400 errors with Meta’s reason. Requires the whatsapp:write scope.

Authorizations

Authorization
string
header
required

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

Path Parameters

templateId
string
required
Minimum string length: 1

Body

application/json
category
enum<string>
Available options:
UTILITY,
MARKETING,
AUTHENTICATION
components
object[]
Minimum array length: 1
message_send_ttl_seconds
integer

Message validity period in seconds. Authentication: 30–900, Utility: 30–43200, Marketing: 43200–2592000. -1 = explicit 30-day TTL (authentication/utility only).

Required range: -9007199254740991 <= x <= 9007199254740991

Response

Default Response

success
boolean
required