# updateWebhook

{% code overflow="wrap" %}

```javascript
public updateWebhook(webhookId: string, reqParams: VyUpdateWebhookRequest) : VyPromise<VyWebhookDto>
```

{% endcode %}

{% tabs %}
{% tab title="Details" %}
**Parameters**

| webhookId | string                                                                                                             | This is the \`ID\` of the webhook you want to update. |
| --------- | ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------- |
| reqParams | [VyUpdateWebhookRequest](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/pay/vyupdatewebhookrequest) | Request data for the operation                        |

**Returns**

VyPromise<[VyWebhookDto](https://sdk.venly.io/sdk-reference/ts-js-v3/object-references/pay/vywebhookdto)>
{% endtab %}
{% endtabs %}
