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

# Update a Webhook

`PUT /v1/webhooks/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `data` object
    - `attributes` object
      - `url` string — The list of events to be sent to this webhook. Possible values in the meantime are: Checkout transactions: **`checkout_session.payment.paid`** Transactions: **`source.chargeable`**, **`payment.paid`**, and **`payment.failed`** Refunds: **`payment.refunded`** and **`payment.refund.updated`** Subscriptions: **`subscription.past_due`**, **`subscription.unpaid`**, and **`subscription.updated`** Invoices: **`subscription.invoice.created`**, **`subscription.invoice.finalized`**, **`subscription.invoice.paid`**, and **`subscription.invoice.payment_failed`** PayMongo Links: **`link.payment.paid`** QR Ph codes: **`qrph.expired`**
      - `events` string[] — The list of events to be sent to this webhook. Possible values in the meantime are `source.chargeable`, `payment.paid`, and `payment.failed` for transactions; `payment.refunded` and `payment.refund.updated` for refunds. `link.payment.paid` for PayMongo Links. `checkout_session.payment.paid` for PayMongo Checkout. `qrph.expired` for QR Ph codes

## Response `200`

200

- object

## Other responses

- `400` — 400
- `404` — Not Found

---

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