---
title: "Update a webhook"
method: PUT
path: "/webhooks/{id}"
---

# Update a webhook

`PUT /webhooks/{id}`

## Request

- Base URL: `https://api.sandbox.waza.co/v2`
- URL: `https://api.sandbox.waza.co/v2/webhooks/{id}`
- Auth: API key in header `waza-x-key`

## Path parameters

- `id` string, required

## Headers

- `waza-x-key` string

## Request body

- object
  - `label` string, required
  - `url` string, required: A valid and secure https:// URL
  - `secret` string, required: Secret used in signing webhook payloads. Maximum of 10 chars
  - `events` string[], required: At least one event type to consume

## Response `200`

200

- object
  - `data` object
    - `id` string
    - `label` string
    - `url` string
    - `secret` string
    - `state` string
    - `created_date` string
    - `updated_date` string
    - `events` string[]

---

[API](https://skmtc.dev/waza/apis/b2b-payments-api.md) - [All operations](https://skmtc.dev/waza/apis/b2b-payments-api/llms.txt) - [OpenAPI document](https://skmtc.dev/waza/apis/b2b-payments-api/revisions/7d4685fefb9f?raw)
