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

# Update a webhook endpoint

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

## Request

- Base URL: `https://namesniper.pro`
- URL: `https://namesniper.pro/api/v1/webhooks/{id}`
- Auth: HTTP bearer

## Request body

- object
  - `url` string, uri
  - `events` WebhookEvent[]
  - `active` boolean

## Response `200`

Updated webhook.

- object
  - `success` unknown
  - `data` Webhook
    - `id` string
    - `url` string, uri
    - `events` WebhookEvent[]
    - `active` boolean
    - `failCount` integer
    - `lastError` string, nullable
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400`: Invalid request (missing field, bad JSON, or invalid value).
- `401`: Missing or invalid API key.
- `404`: Resource not found or not owned by the caller.

---

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