# Regenerate your TradingView webhook URL

`PATCH https://api.cryptohopper.com/v1/app/tradingview/webhook`

Part of [Apps](https://www.cryptohopper.com/api-documentation/api-reference/apps.md) in the Cryptohopper API reference.

Creates a new personal TradingView webhook URL for your account and returns it. The previous URL stops working, so update your TradingView alerts.

OAuth scope: `read`, `manage`

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Example request

```bash
curl -X PATCH "https://api.cryptohopper.com/v1/app/tradingview/webhook" \
  -H "access-token: YOUR_ACCESS_TOKEN"
```

## Response

Example response (illustrative values):

```json
{
    "data": "https://www.cryptohopper.com/tradingview_alerts/hook?key=Qm4rT8yLp2Ks6Vx0Nb3Hc7Jd1Fg5Wz9aEu2Io8Pl4Sy6Rt0Mn3Bv7Cx1Zq5Dw9Ge"
}
```

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
