---
title: "Update a webhook config"
method: PATCH
path: "/api/v1/bila/webhooks/{id}"
tags: ["Webhooks"]
---

# Update a webhook config

`PATCH /api/v1/bila/webhooks/{id}`

## Path parameters

- `id` string, required

## Request body

- UpdateWebhookConfigDto
  - `url` string — Webhook endpoint URL
  - `events` string[] — Event types to subscribe to
  - `isActive` boolean — Whether the webhook is active

## Response `200`

Webhook config updated

- object
  - `status` boolean, required — Request success status
  - `message` string, required — Response message
  - `data` WebhookConfigResponseDto
    - `id` string, uuid, required — Webhook config UUID
    - `merchantId` string, uuid, required — Merchant UUID
    - `url` string, required — Webhook endpoint URL
    - `secret` string, required — Signing secret; plaintext only on create/rotate-secret, otherwise masked
    - `events` string[], required — Subscribed event types
    - `isActive` boolean, required — Whether the webhook is active
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

---

[API](https://skmtc.net/bilasdk/apis/bila-payment-gateway-api.md) · [All operations](https://skmtc.net/bilasdk/apis/bila-payment-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bilasdk/bila-payment-gateway-api/versions/1e6976632889/schema)
