# Update a webhook endpoint (/docs/api/webhook-endpoints/update-webhook-endpoint)

## Update a webhook endpoint

`PATCH https://runepay.co/api/v1/webhook_endpoints/{id}`

Disabling fails pending deliveries; enabling does not resend them.

Scope: `webhook_endpoints:write`

| Parameter | In | Type | Description |
| --- | --- | --- | --- |
| `id` (required) | path | string | The object id. |
| `Idempotency-Key` | header | string | Makes a retry safe: the same key and body within 24 hours does not repeat the request. |

Body:

| Field | Type | Description |
| --- | --- | --- |
| `api_version` | string | Event envelope version. Defaults to 2026-12-15. |
| `description` | string or null |  |
| `metadata` | object | Your own key-value strings, returned as sent. |
| `url` | string | A public HTTPS URL. |
| `enabled_events` | array |  |
| `status` | string (`enabled`, `disabled`) |  |

Example request body:

```json
{
  "status": "disabled"
}
```

Response `200`:

```json
{
  "id": "we_01KA9F6G8H0J2K4M6N8P0Q2R4S",
  "object": "webhook_endpoint",
  "url": "https://merchant.example/hooks",
  "livemode": false,
  "enabled_events": [
    "*"
  ],
  "status": "disabled",
  "api_version": "2026-12-15",
  "description": null,
  "metadata": {},
  "created": 1767225600
}
```

Errors: 400, 401, 403, 404, 409, 413, 422, 500, 503, with the [error shape](/docs/api/errors).
