# Update a webhook endpoint

> Changes the address, the events it receives, or turns it on or off. Use this to re-enable an endpoint that was disabled after failed deliveries.

```
PATCH https://api.sandbox.stridehq.ai/v1/webhook_endpoints/{id}
```

Not available yet: this endpoint is planned.

Scope: `webhooks:manage`

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string | Yes | The webhook endpoint's id. |

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `Idempotency-Key` | string | No | A unique value, such as a UUID. The same key and body within 24 hours returns the original response. |

## Body

| Name | Type | Required | Description |
|---|---|---|---|
| `url` | string | No |  |
| `events` | array of string | No |  |
| `enabled` | boolean | No |  |

## Responses

- **200**: The updated endpoint.
- **400**: `unknown_field`, `invalid_parameter` or `invalid_cursor`.
- **401**: `missing_api_key`, `invalid_api_key`, `revoked_api_key` or `wrong_environment`.
- **404**: `resource_not_found`: no such object in your organisation.

```json
{
  "id": "we_5e7a9c1b3d5f4a6c8e0a2b4c6d8e0f1a",
  "object": "webhook_endpoint",
  "url": "https://example.com/webhooks/stridehq",
  "events": [
    "payment_run.funded",
    "payment_run.completed",
    "payment.failed"
  ],
  "enabled": true,
  "created_at": "2026-10-29T09:00:00Z"
}
```
