Skip to main content
PUT
/
whatsapp
/
businesses
/
{wabaId}
/
templates
/
{templateId}
Edit template
curl --request PUT \
  --url https://api.hubmessage.io/whatsapp/businesses/{wabaId}/templates/{templateId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "order_update_v1",
  "category": "UTILITY",
  "language": "en_US",
  "components": [
    {
      "type": "BODY",
      "text": "Hello {{1}}, your order {{2}} has been updated to {{3}}.",
      "example": {
        "body_text": [
          [
            "Ana",
            "ORD-1024",
            "in transit"
          ]
        ]
      }
    }
  ]
}
'
{
  "success": true
}

Overview

Edits an existing template and resubmits it for Meta approval. The body is the same used when creating the template.
When editing an approved template, it goes back to PENDING status until Meta reviews it again.
The templateId is obtained from the List templates endpoint.

Authorizations

Authorization
string
header
required

Secret Key generated in the Hub Message Security panel

Path Parameters

wabaId
string
required

WABA ID (obtained via List WABAs)

Example:

"428083093730937"

templateId
string
required

Template ID (obtained via List templates)

Example:

"1900296177408890"

Body

application/json
name
string
required

Template name (snake_case, no spaces)

category
enum<string>
required

Template category

Available options:
UTILITY,
MARKETING,
AUTHENTICATION
language
string
required

Template language (e.g. en_US, pt_BR)

components
object[]
required

Template components (HEADER, BODY, FOOTER, BUTTONS)

Response

Template edited successfully

success
boolean

Indicates whether the operation was successful