# Update a webhook endpoint

> PATCH /v1/webhooks/{id} changes the URL, event list or description of a webhook endpoint, or enables or disables it: parameters, tested examples and errors.

Source: https://esigncomply.com/docs/api/account/update-a-webhook-endpoint

Last updated November 26, 2026

In the Esign Comply API, `PATCH /v1/webhooks/{id}` changes the URL, event list or description of a webhook endpoint, or enables or disables it. Use it to subscribe an endpoint to other events or to enable one again after it was disabled.

`PATCH /v1/webhooks/{id}` · API version `2026-11-21`

## Authentication

Send a secret key in the `Authorization` header: `Bearer $ESIGNCOMPLY_API_KEY`. The key needs `full_access` permission. Test keys and live keys both work, and each reads and writes the objects of its own environment. Call it from your server: a secret key never goes to a browser. Keys and permissions are described under [Authentication](https://esigncomply.com/docs/api.md#authentication).

## Request example

### cURL

```bash
curl -X PATCH https://esigncomply.com/v1/webhooks/wh_G33e \
  -H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "events": [
      "record.completed",
      "record.disputed",
      "signer.reacceptance_required"
    ],
    "description": "Production app"
  }'
```

### Node SDK

```ts
import { EsignComply } from "esigncomply";

const esc = new EsignComply(process.env.ESIGNCOMPLY_API_KEY);

const { data, error } = await esc.webhooks.update(
  "wh_G33e",
  {
    events: ["record.completed", "record.disputed", "signer.reacceptance_required"],
    description: "Production app",
  },
);
```

This request ran against the API on November 26, 2026, and the response below is what came back. IDs are example values, and long values are shortened with `...`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | Yes | ID of the webhook endpoint. |

### Body fields

| Field | Type | Required | Description |
|---|---|---|---|
| `url` | string | No | Same rules as on creation. |
| `events` | string[] | No | Replaces the subscription list. |
| `description` | string | No | Up to 200 characters. |
| `status` | string | No | `enabled` or `disabled`. Setting `enabled` clears `failing_since`. |

The body is the `webhook_endpoint` object, without `secret`.

Headers: `Esign-Comply-Version` (optional, a dated API version). See [API conventions](https://esigncomply.com/docs/api.md).

## Response

`200 OK` with a WebhookEndpoint object.

```json
{
  "object": "webhook_endpoint",
  "id": "wh_G33e",
  "livemode": false,
  "url": "http://localhost:4000/webhooks/esigncomply",
  "description": "Production app",
  "events": [
    "record.completed",
    "record.disputed",
    "signer.reacceptance_required"
  ],
  "status": "enabled",
  "api_version": "2026-11-21",
  "failing_since": null,
  "created_at": "2026-11-26T00:15:29.657Z"
}
```

### Response fields

| Field | Type | Description |
|---|---|---|
| `object` | string |  |
| `id` | string |  |
| `livemode` | boolean |  |
| `url` | string |  |
| `description` | string |  |
| `events` | array of string |  |
| `status` | string |  |
| `api_version` | string |  |
| `failing_since` | datetime |  |
| `created_at` | datetime |  |
| `secret` | string | whsec_... Present only in the creation response. |
| `deleted` | boolean |  |

## Errors

| Code | HTTP | When |
|---|---|---|
| [`invalid_request`](https://esigncomply.com/docs/api/errors.md#invalid_request) | 400 | The URL or an event type is not valid. |
| [`not_found`](https://esigncomply.com/docs/api/errors.md#not_found) | 404 | No such endpoint in this environment. |

Like every call made with a secret key, it can also return [`missing_api_key`](https://esigncomply.com/docs/api/errors.md#missing_api_key), [`invalid_api_key`](https://esigncomply.com/docs/api/errors.md#invalid_api_key), [`domain_not_verified`](https://esigncomply.com/docs/api/errors.md#domain_not_verified), [`insufficient_permission`](https://esigncomply.com/docs/api/errors.md#insufficient_permission), [`region_mismatch`](https://esigncomply.com/docs/api/errors.md#region_mismatch), [`rate_limit_exceeded`](https://esigncomply.com/docs/api/errors.md#rate_limit_exceeded) and [`internal_error`](https://esigncomply.com/docs/api/errors.md#internal_error).

Every error has the same body: `error.type`, `error.code`, `error.message`, `error.doc_url` and `error.request_id`. See [Errors](https://esigncomply.com/docs/api/errors.md).

## Questions about PATCH /v1/webhooks/{id}

### Which credential does PATCH /v1/webhooks/{id} need?

A secret key with full_access permission. Send it as a Bearer token in the Authorization header, from your server only. A session client token is refused with insufficient_permission.

### Does PATCH /v1/webhooks/{id} work with a test key?

Yes. It works with test keys and live keys. A test key reads and writes test objects only, and a live key works once the domain is verified.

### Does PATCH /v1/webhooks/{id} count as a signature event?

No. A signature event is counted when a live record is written, by completing a session or by submitting a deferred acceptance. This call writes no record.

### Is PATCH /v1/webhooks/{id} idempotent?

It takes no Idempotency-Key header. The API acts on that header for POST calls only, and this is a PATCH.

### What is the rate limit for PATCH /v1/webhooks/{id}?

The limit is counted for each key and depends on the plan: 2 requests per second on Free, 10 on Starter, 50 on Unlimited and 100 on Enterprise. Past the limit the API answers 429 rate_limit_exceeded with a Retry-After header.

### Does the Node SDK have a method for PATCH /v1/webhooks/{id}?

Yes: esc.webhooks.update() in the esigncomply package. It resolves to { data, error } and does not throw.

## Related

- [Account](https://esigncomply.com/docs/api/account.md): the overview of the resource and all of its operations.
- [Delete a webhook endpoint](https://esigncomply.com/docs/api/account/delete-a-webhook-endpoint.md): `DELETE /v1/webhooks/{id}`
- [Send a test webhook event](https://esigncomply.com/docs/api/account/send-a-test-webhook-event.md): `POST /v1/webhooks/{id}/test`
- [List webhook deliveries](https://esigncomply.com/docs/api/account/list-webhook-deliveries.md): `GET /v1/webhooks/deliveries`
- [Get usage](https://esigncomply.com/docs/api/account/get-usage.md): `GET /v1/usage`
- [Domains](https://esigncomply.com/docs/guides/domains.md)
- [Test mode](https://esigncomply.com/docs/guides/test-mode.md)
- [Errors](https://esigncomply.com/docs/api/errors.md): every error code, with what to do.
- [API conventions](https://esigncomply.com/docs/api.md): authentication, idempotency, rate limits and versioning.
