---
title: "Update a Webhook"
method: PATCH
path: "/webhooks/{id}"
---

# Update a Webhook

`PATCH /webhooks/{id}`

## Request

- Base URL: `https://api.sandbox.waza.co/payouts/v1`
- URL: `https://api.sandbox.waza.co/payouts/v1/webhooks/{id}`
- Auth: none required

With this endpoint, you can update an existing webhook configuration. You can modify the target URL, secret, or change the list of events you're subscribed to.

## Path parameters

- `id` string, required

## Headers

- `x-waza-key` string

## Request body

- object
  - `url` string: URL endpoint where the webhook notifications are sent
  - `secret` string: Webhook url secret
  - `enabled_events` string: An array of event names that you want to receive notifications i.e. ["transaction.created", "transaction.processing"]

## Response `200`

200

- object
  - `data` object
    - `id` string
    - `created_at` string
    - `updated_at` string
    - `state` string
    - `url` string
    - `secret` string
    - `enabled_events` string[]

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `496d6a60d53b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/waza/apis/waza-payout-apis/changes/webhooks/:id/patch.md)

---

[API](https://skmtc.dev/waza/apis/waza-payout-apis.md) - [All operations](https://skmtc.dev/waza/apis/waza-payout-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/waza/apis/waza-payout-apis/revisions/496d6a60d53b?raw)
