> ## 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

> Atualizar a configuração de um SIP Trunk

# 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

<ParamField path="trunk_id" type="string" required>UUID do SIP Trunk.</ParamField>

## Cabeçalhos da requisição

<ParamField header="Authorization" type="string" required>
  Token Bearer para autenticação. Formato: `Bearer talq_your_environment_token_here`
</ParamField>

<ParamField header="Content-Type" type="string" required>
  Deve ser definido como `application/json`
</ParamField>

## Corpo da requisição

Mesmos campos de [Criar SIP Trunk](/api-reference/endpoints/create-sip-trunk), todos opcionais.

## Exemplos

<RequestExample>
  ```bash theme={null}
  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
    }'
  ```
</RequestExample>

## Resposta

<ResponseExample>
  ```json theme={null}
  {
    "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"
    }
  }
  ```
</ResponseExample>

## Observações

* Após atualizar credenciais/domínio/transporte, execute novamente [Verificar SIP Trunk](/api-reference/endpoints/verify-sip-trunk) antes de reativar.
