---
title: "Update Hook"
method: PATCH
path: "/hooks/{hookId}"
tags: ["hooks"]
---

# Update Hook

`PATCH /hooks/{hookId}`

Updates the configuration of an existing webhook, including its name, event subscriptions, or target URL.

## Path parameters

- `hookId` string, required

## Request body

- object
  - `name` string — A new name for the hook.
  - `events` string[] — Updated list of event types to subscribe to.
  - `url` string, uri — A new URL to send webhook payloads to.

## Response `200`

Success

- HookDetail — Full configuration details for a webhook, including its scope and subscription.
  - `id` string, required — A unique identifier for the webhook.
  - `object` 'hook', required — Fixed value identifying this object as a webhook.
  - `name` string, required — A user-defined name to label the webhook.
  - `events` string[], required — List of event types this webhook is subscribed to.
  - `chatId` string — Optional ID of the chat that this webhook is scoped to.
  - `url` string, required — Target URL that receives event payloads for this webhook.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `413` — Payload Too Large
- `422` — Unprocessable Entity
- `429` — Too Many Requests
- `500` — Internal Server Error

## Changes

- **2025-09-08** `9924b1bf0d99` — 1 warning, 1 info
  - added the new `message.finished` enum value to the `events/items/` response property for the response status `200`
  - added the new `message.finished` enum value to the request property `events/items/`
- **2025-08-24** `3521652a43a7` — 1 breaking, 1 info
  - removed the enum value `message.finished` of the request property `events/items/`
  - removed the `message.finished` enum value from the `events/items/` response property for the response status `200`

[Change history](https://skmtc.dev/vercel/apis/v0-platform-api-beta/changes/hooks/:hookId/patch.md)

---

[API](https://skmtc.dev/vercel/apis/v0-platform-api-beta.md) · [All operations](https://skmtc.dev/vercel/apis/v0-platform-api-beta/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vercel/v0-platform-api-beta/revisions/b53921245779/schema)
