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

# Alternar Webhook da Campanha

> Habilitar ou desabilitar um webhook de campanha

# Alternar Webhook da Campanha

Alterna um webhook de campanha entre habilitado e desabilitado. Desabilitar interrompe todas as entregas sem excluir a configuração.

## Endpoint

```
PATCH /api/v1/campaigns/{campaign_id}/webhooks/{webhook_id}/toggle
```

## Parâmetros de caminho

<ParamField path="campaign_id" type="string" required>UUID da campanha.</ParamField>
<ParamField path="webhook_id" type="string" required>UUID do webhook.</ParamField>

## Cabeçalhos da requisição

<ParamField header="Authorization" type="string" required>
  Token Bearer. Formato: `Bearer talq_your_environment_token_here`
</ParamField>

## Exemplos

<RequestExample>
  ```bash theme={null}
  curl -X PATCH "https://app.talkover.ai/api/v1/campaigns/campaign-uuid/webhooks/webhook-uuid-1/toggle" \
    -H "Authorization: Bearer talq_your_environment_token_here"
  ```
</RequestExample>

## Resposta

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "message": "Webhook disabled",
    "data": {
      "id": "webhook-uuid-1",
      "enabled": false
    }
  }
  ```
</ResponseExample>
