channel_connections.template_delete
Excluir um template de WhatsApp. Apaga o modelo na Meta (DELETE /{waba}/message_templates?name=), em todos os idiomas daquele nome, e atualiza a lista. Não dá para desfazer.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/channel_connections.template_delete(corpo JSON) - Quem pode chamar: administrador da conta
- Escopo da chave:
channels:write - Grava dados: sim
- Pela chave de API: sim
- Ferramenta MCP:
channel_connections_template_delete - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdchannel_connections.template_delete)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
channelId | string (uuid) | sim | |
name | string | sim |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"channelId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"name": {
"type": "string",
"pattern": "^[a-z0-9_]{1,512}$"
}
},
"required": [
"channelId",
"name"
]
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/channel_connections.template_delete \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channelId":"00000000-0000-0000-0000-000000000000","name":"boas_vindas"}'CLI:
node cli/atomiks.mjs channel_connections.template_delete --json '{"channelId":"00000000-0000-0000-0000-000000000000","name":"boas_vindas"}'MCP: ferramenta channel_connections_template_delete com a mesma entrada.
Saída
Sucesso: {"data": ...} com o formato abaixo.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"additionalProperties": false
}Erros
{"error": {"code", "message", "requestId"}}. Códigos: invalid_input (400), unauthorized (401), forbidden / account_pending / scope_missing (403), not_found (404), limit_reached (409), internal (500).