---
title: "Update webhook"
method: PATCH
path: "/v1/default/banks/{bank_id}/webhooks/{webhook_id}"
tags: ["Webhooks"]
---

# Update webhook

`PATCH /v1/default/banks/{bank_id}/webhooks/{webhook_id}`

## Request

- Base URL: `https://hindsight.vectorize.io` (the document declares no server; this is the origin it was published from)
- URL: `https://hindsight.vectorize.io/v1/default/banks/{bank_id}/webhooks/{webhook_id}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/vectorize/apis/hindsight-http-api/docs/v1/default/banks/:bank_id/webhooks/:webhook_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update one or more fields of a registered webhook. Only provided fields are changed.

## Path parameters

- `bank_id` string, required
- `webhook_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- UpdateWebhookRequest: Request model for updating a webhook. Only provided fields are updated.
  - `url` string, nullable: HTTP(S) endpoint URL
  - `secret` string, nullable: HMAC-SHA256 signing secret. Omit to keep existing; send null to clear.
  - `event_types` string[], nullable: List of event types
  - `enabled` boolean, nullable: Whether this webhook is active
  - `http_config` WebhookHttpConfig: HTTP delivery configuration for a webhook.
    - `method` string: HTTP method: GET or POST
    - `timeout_seconds` integer: HTTP request timeout in seconds
    - `headers` object: Custom HTTP headers
    - `params` object: Custom HTTP query parameters

## Response `200`

Successful Response

- WebhookResponse: Response model for a webhook.
  - `id` string, required
  - `bank_id` string, nullable, required
  - `url` string, required
  - `secret` string, nullable: Signing secret (redacted in responses)
  - `event_types` string[], required
  - `enabled` boolean, required
  - `http_config` WebhookHttpConfig: HTTP delivery configuration for a webhook.
    - `method` string: HTTP method: GET or POST
    - `timeout_seconds` integer: HTTP request timeout in seconds
    - `headers` object: Custom HTTP headers
    - `params` object: Custom HTTP query parameters
  - `created_at` string, nullable
  - `updated_at` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-04** `4fda98b75f63`: 1 warning
  - removed the optional property `detail/items/url` from the response with the `422` status
- **2026-05-15** `0d08f271b9db`: 3 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
  - added the optional property `detail/items/url` to the response with the `422` status

[Operation history](https://skmtc.dev/vectorize/apis/hindsight-http-api/changes/v1/default/banks/:bank_id/webhooks/:webhook_id/patch.md)

---

[API](https://skmtc.dev/vectorize/apis/hindsight-http-api.md) - [All operations](https://skmtc.dev/vectorize/apis/hindsight-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vectorize/apis/hindsight-http-api/revisions/45e711cd0897?raw)
