# Update webhook endpoint

Changes the URL (SSRF-checked again), event types, description, or status (enabled or disabled). Requires developer:manage.

`PATCH /v1/webhook-endpoints/{ep_id}`

Changes the URL (SSRF-checked again), event types, description, or status (enabled or disabled). Requires developer:manage.

Requires permission `developer:manage`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `ep_id` | path | yes | Webhook endpoint id (we_...). |

## Request body

```json
{
  "url": "https://example.com/resource",
  "event_types": [
    "string"
  ],
  "description": "Example",
  "status": "active"
}
```

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.
- **404**: The resource does not exist or belongs to another organization.

Example 200 response:

```json
{
  "endpoint": {
    "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "url": "https://example.com/resource",
    "description": "Example",
    "event_types": [
      "string"
    ],
    "status": "active",
    "secret_prefix": "string",
    "org_id": "org_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "merchant_id": "mch_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "created_at": "2026-11-16T12:00:00Z"
  }
}
```
