> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usecontra.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Webhook Destination

> Change the URL, version, event subscription, or rotate the signing secret.

```bash theme={null}
curl -X PATCH https://identity.contra.id/v1/webhook-destinations/$UUID \
  -H "x-api-key: $CONTRA_KEY" -H "Content-Type: application/json" \
  -d '{ "rotate_secret": true }'
```

| Body            | Type      | Description                                                      |
| --------------- | --------- | ---------------------------------------------------------------- |
| `url`           | url       | New endpoint.                                                    |
| `version`       | enum      | `v1` · `v2` · `v3`.                                              |
| `events`        | string\[] | New event subscription.                                          |
| `active`        | boolean   | Toggle on/off without deleting.                                  |
| `rotate_secret` | boolean   | `true` → new HMAC secret returned (old invalidated immediately). |
