# update_webhook_endpoint (/reference/webhooks/update-webhook-endpoint)



## PATCH https://api.finic.ai/v1/webhook_endpoints/{id}

Changes the fields sent (an admin's key). Set `status` to `enabled` to turn a disabled endpoint on again.

Authorization: `Bearer <API key>` (see [Authentication](/authentication)).

### Request body (application/json)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string |  |  |
| `event_types` | array of string |  |  |
| `description` | string |  |  |
| `status` | `enabled`, `disabled` |  |  |

Example:

```json
{
  "event_types": [
    "*"
  ]
}
```

### Responses

- **200**: The endpoint.

| Field | Type | Always | Description |
| --- | --- | --- | --- |
| `id` | string |  | `whe_…` |
| `url` | string |  |  |
| `description` | string |  |  |
| `event_types` | array of string |  |  |
| `status` | `enabled`, `disabled` |  |  |
| `disabled_reason` | string |  | Why it was disabled. |
| `failing_since` | string or null |  |  |
| `created_at` | string |  |  |
| `updated_at` | string |  |  |

- **400**: `invalid_request`: the request breaks a rule of the endpoint. `param` names the field at fault.

- **401**: `authentication_error`: the API key is missing, unknown, revoked or expired.

- **403**: `permission_denied`: this needs an API key an admin of the organization created.

- **404**: `<record>_not_found`, such as `business_not_found`: no such record in your organization.
