Skip to main content
POST
/
templates
/
{templateId}
Editar Template
curl --request POST \
  --url https://apis.vectalk.com.br/api/templates/{templateId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "components": [
    {}
  ],
  "language": "<string>",
  "category": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.vectalk.com.br/llms.txt

Use this file to discover all available pages before exploring further.

Requer token de instância. Apenas templates com status APPROVED ou REJECTED podem ser editados.

Parâmetros

Path

templateId
string
required
ID do template a ser editado.

Body

name
string
Nome do template.
components
array
Componentes atualizados do template (HEADER, BODY, FOOTER, BUTTONS).
language
string
Código do idioma. Exemplo: pt_BR.
category
string
Categoria: MARKETING, UTILITY, AUTHENTICATION.

Exemplo

curl --request POST \
  --url https://apis.vectalk.com.br/api/templates/{templateId} \
  --header 'Authorization: Bearer {seu_token}' \
  --header 'Content-Type: application/json' \
  --data '{
    "components": [
      {
        "type": "BODY",
        "text": "Olá {{1}}, seu pedido #{{2}} foi atualizado."
      }
    ]
  }'

Resposta

{
  "success": true
}