---
title: "Update a webhook endpoint"
method: PATCH
path: "/v1/webhook-endpoints/{id}"
tags: ["Webhooks"]
---

# Update a webhook endpoint

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

## Request

- Base URL: `https://api.letmepost.dev`
- URL: `https://api.letmepost.dev/v1/webhook-endpoints/{id}`
- Auth: HTTP bearer

Partial update. Setting `active: false` pauses delivery without losing the endpoint; flipping back to `true` re-enables it.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateWebhookEndpointRequest: Partial update. At least one field must be present.
  - `url` string, uri
  - `events` WebhookEventType[]
  - `active` boolean
  - `description` string, nullable

## Response `200`

Endpoint updated.

- WebhookEndpoint
  - `id` string, required
  - `url` string, uri, required
  - `events` WebhookEventType[], required
  - `description` string, nullable
  - `active` boolean, required
  - `lastDeliveryAt` string, date-time, nullable
  - `lastFailureReason` string, nullable
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `400`: `validation_failed` — request body or query parameters didn't match the schema. Rules surfaced include `body.json`, `targets.required`, `targets.max`, `mode_conflict`, `targets.options.platform_mismatch`, `targets.account.platform_mismatch`, `target.account.not_connected`, `target.account.ambiguous`, `scheduledAt.future`, `scheduledAt.no_first_comment`, `scheduledAt.no_bluesky_reply`.
- `401`: `unauthenticated` — missing or invalid Bearer key.
- `404`: `not_found` — the resource does not exist in the caller's organization (or, for profile-scoped keys, in the caller's profile).
- `429`: `rate_limited` — too many requests. Inspect `X-RateLimit-Limit` (static ceiling) and the IETF-draft `RateLimit-*` headers (sliding-window remaining/reset) before retrying.

---

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