Skip to main content
PUT
/
whatsapp
/
businesses
/
{wabaId}
/
templates
/
{templateId}
Editar 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": "atualizacao_pedido_v1",
  "category": "UTILITY",
  "language": "pt_BR",
  "components": [
    {
      "type": "BODY",
      "text": "Olá {{1}}, seu pedido {{2}} foi atualizado para {{3}}.",
      "example": {
        "body_text": [
          [
            "Ana",
            "PED-1024",
            "em transporte"
          ]
        ]
      }
    }
  ]
}
'
{
  "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 gerada no painel de Segurança do Hub Message

Path Parameters

wabaId
string
required

ID do WABA (obtido via Listar WABAs)

Example:

"428083093730937"

templateId
string
required

ID do template (obtido via Listar templates)

Example:

"1900296177408890"

Body

application/json
name
string
required

Nome do template (snake_case, sem espaços)

category
enum<string>
required

Categoria do template

Available options:
UTILITY,
MARKETING,
AUTHENTICATION
language
string
required

Idioma do template (ex: pt_BR, en_US)

components
object[]
required

Componentes do template (HEADER, BODY, FOOTER, BUTTONS)

Response

Template editado com sucesso

success
boolean

Indica se a operação foi realizada com sucesso