---
title: "Update the status of a webhook"
method: PATCH
path: "/api/webhook/{webhookId}"
tags: ["Webhooks"]
---

# Update the status of a webhook

`PATCH /api/webhook/{webhookId}`

Updates the status of a specific webhook endpoint by ID

## Path parameters

- `webhookId` string, required

## Request body

- UpdateWebhookDto
  - `status` 'disabled' | 'enabled', required — Status of the webhook

## Response `200`

Update the status of a webhook successful

- WebhookStatusResponse
  - `webhookId` string, required — Unique identifier of the webhook
  - `webhookUrl` string, required — HTTPS URL where webhook notifications will be sent
  - `status` 'enabled' | 'disabled', required — Status of the webhook
  - `failureReason` string, required — Failure reason of the webhook

## Other responses

- `400` — Invalid input data
- `401` — Unauthorized - Invalid API key
- `404` — Resource not found

---

[API](https://skmtc.net/inflowpay/apis/inflow-api.md) · [All operations](https://skmtc.net/inflowpay/apis/inflow-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/inflowpay/inflow-api/versions/3012dd3dd14a/schema)
