---
search:
  tags:
    - billing
    - PATCH
seo:
  description: >-
    Update an outbound webhook endpoint. Reference for the PATCH
    /v1/webhook-endpoints/{endpointId} endpoint in the Vortex Payments API.
sidebar:
  label: Update an outbound webhook endpoint
  badge: PATCH
title: Update an outbound webhook endpoint
type: openapi-operation
---
`PATCH /v1/webhook-endpoints/{endpointId}`

**curl**

```bash
curl "https://api.vortex.nyc/v1/webhook-endpoints/{endpointId}?environment=sandbox&merchantAccountId=..." \
  -X PATCH \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"eventTypes":["invoice.paid","invoice.payment_failed"],"status":"active"}'
```

**TypeScript**

```ts
import { updateWebhookEndpoint, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await updateWebhookEndpoint({
  client: vortex,
  path: { endpointId: "..." },
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"eventTypes":["invoice.paid","invoice.payment_failed"],"status":"active"},
});
```

**Request body** (`application/json`, required)

- `url` (string<uri>)
- `description` (string)
- `eventTypes` (string[])
- `status` (string)

Request body example:

```json
{
  "eventTypes": [
    "invoice.paid",
    "invoice.payment_failed"
  ],
  "status": "active"
}
```

**Responses**

- `200` — Success
- `400` — Bad request, including malformed JSON
- `401` — Missing or invalid API key
- `409` — Conflict, including idempotency body drift
- `422` — Validation failed
- `429` — API key rate limit exceeded
- `default` — Error

Response example, 200:

```json
{
  "data": {},
  "requestId": "string"
}
```
