---
title: "updateWebhook"
method: POST
path: "/updateWebhook/{webhook_id}"
---

# updateWebhook

`POST /updateWebhook/{webhook_id}`

Updates a webhook

## Headers

- `AUTHORIZATION` string, required

## Request body

- object
  - `RAW_BODY` object
    - `url` string, required — URL to send the HTTPS webhooks
    - `secret` string, required — Secret to encode the webhook payload
    - `events` string[], required — Array of events to be notified
    - `active` boolean — Webhook is active or not once created

## Response `200`

200

- object
  - `id` integer
  - `url` string
  - `secret` string
  - `events` string[]
  - `active` boolean

## Other responses

- `400` — 400

---

[API](https://skmtc.net/telepay/apis/telepay-rest-api.md) · [All operations](https://skmtc.net/telepay/apis/telepay-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/telepay/telepay-rest-api/versions/02f04301c30e/schema)
