Pular para o conteúdo principal
PUT
/
api
/
v1
/
sip-trunks
/
{trunk_id}
curl -X PUT "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1" \
  -H "Authorization: Bearer talq_your_environment_token_here" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Primary Carrier — US (renamed)",
    "is_active": false
  }'
{
  "success": true,
  "data": {
    "id": "trunk-uuid-1",
    "name": "Primary Carrier — US (renamed)",
    "is_active": false,
    "is_verified": true,
    "updated_at": "2024-01-15T15:00:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.talkover.ai/llms.txt

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

Atualizar SIP Trunk

Atualiza a configuração de um SIP Trunk. Todos os campos são opcionais — apenas os campos enviados são atualizados. Alterações que afetem a conectividade (domínio, transporte, credenciais) automaticamente redefinem is_verified para false.

Endpoint

PUT /api/v1/sip-trunks/{trunk_id}

Parâmetros de Caminho

trunk_id
string
obrigatório
UUID do SIP Trunk.

Cabeçalhos da Requisição

Authorization
string
obrigatório
Token Bearer para autenticação. Formato: Bearer talq_your_environment_token_here
Content-Type
string
obrigatório
Deve ser definido como application/json

Corpo da Requisição

Mesmos campos de Criar SIP Trunk, todos opcionais.

Exemplos

curl -X PUT "https://app.talkover.ai/api/v1/sip-trunks/trunk-uuid-1" \
  -H "Authorization: Bearer talq_your_environment_token_here" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Primary Carrier — US (renamed)",
    "is_active": false
  }'

Resposta

{
  "success": true,
  "data": {
    "id": "trunk-uuid-1",
    "name": "Primary Carrier — US (renamed)",
    "is_active": false,
    "is_verified": true,
    "updated_at": "2024-01-15T15:00:00Z"
  }
}

Observações

  • Após atualizar credenciais/domínio/transporte, execute novamente Verificar SIP Trunk antes de reativar.