---
title: "Update a Webhook"
method: PATCH
path: "/webhook/{id}"
tags: ["Webhook"]
---

# Update a Webhook

`PATCH /webhook/{id}`

## Path parameters

- `id` string, required — Unique identifier for object

## Request body

- object
  - `basic_secret` string — The password value sent as part of basic `Authorization` for request validation. Always shown as null in all responses.
  - `basic_user` string — The user value sent as part of basic `Authorization` for request validation. Use is optional.
  - `event` string — The event to listen for. [Available events](/reference/webhook-events)
  - `status` string — One of `enabled` or `disabled`
  - `url` string — The HTTPS URL where the event notification will be sent
  - `userdata` object — Optional arbitrary user data

## Response `200`

The webhook updated

- object
  - `basic_secret` string — The password value sent as part of basic `Authorization` for request validation. Always shown as null in all responses.
  - `basic_user` string — The user value sent as part of basic `Authorization` for request validation. Use is optional.
  - `error` string — The error reason, if the webhook has transitioned status to `error`
  - `event` string — The event to listen for. [Available events](/reference/webhook-events)
  - `id` string — Unique identifier for object
  - `status` string — One of `enabled`, `disabled`, or `error`. Filterable.
  - `url` string — The HTTPS URL where the event notification will be sent
  - `userdata` object — Optional arbitrary user data

---

[API](https://skmtc.net/treasuryprime/apis/account.md) · [All operations](https://skmtc.net/treasuryprime/apis/account/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasuryprime/account/revisions/95a3c69c14e8/schema)
