Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.hadem.chat/llms.txt

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

PATCH https://api.hadem.chat/v1/channels/:id

Autenticação

Exemplos

curl -X PATCH "https://api.hadem.chat/v1/channels/ch_123" \
  -H "Authorization: Bearer hm_live_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Suporte Premium"
  }'

Parâmetros

CampoTipoDescrição
namestringNovo nome do canal

Resposta

{
  "id": "ch_123",
  "name": "Suporte Premium",
  "type": "whatsapp",
  "status": "active"
}

Erros

StatusDescrição
400 Bad RequestBody inválido
401 UnauthorizedToken ausente ou inválido
403 ForbiddenToken sem permissão
404 Not FoundCanal não encontrado