---
title: "Update Endpoint"
method: PATCH
path: "/api/v1/webhooks/{endpoint_id}"
tags: ["webhooks"]
---

# Update Endpoint

`PATCH /api/v1/webhooks/{endpoint_id}`

## Request

- Base URL: `https://legalize.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://legalize.dev/api/v1/webhooks/{endpoint_id}`
- Auth: API key in header `Authorization`

Update a webhook endpoint. Disabling one needs no plan; anything else does.

## Path parameters

- `endpoint_id` integer, required

## Request body

- WebhookEndpointUpdate
  - `url` string, nullable
  - `event_types` string[], nullable
  - `countries` string[], nullable
  - `law_ids` string[], nullable
  - `match_query` string, nullable
  - `description` string, nullable
  - `enabled` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `401`: Missing, malformed, or invalid API key
- `422`: Validation Error
- `429`: Monthly quota exceeded. Includes Retry-After header.

---

[API](https://skmtc.dev/legalize/apis/legalize-api.md) · [All operations](https://skmtc.dev/legalize/apis/legalize-api/llms.txt) · [OpenAPI document](https://skmtc.dev/legalize/apis/legalize-api/revisions/305b67a14660?raw)
