---
title: "Ubah status aktif / daftar event webhook"
method: PATCH
path: "/api/dev/webhooks/{id}"
tags: ["Webhooks"]
---

# Ubah status aktif / daftar event webhook

`PATCH /api/dev/webhooks/{id}`

## Request

- Base URL: `https://api.tokolaku.id`
- URL: `https://api.tokolaku.id/api/dev/webhooks/{id}`
- Auth: API key in cookie `session`

## Path parameters

- `id` string, required

## Request body

- WebhookPatchRequest
  - `is_active` boolean
  - `events` string[]

## Response `200`

Webhook berhasil diubah

- object
  - `data` Webhook
    - `id` string, required
    - `url` string, required
    - `tenant_id` string, nullable, required
    - `events` string[], required
    - `is_active` boolean, required
    - `created_at` string, date-time, required

## Other responses

- `400`: Body kosong / tidak valid
- `404`: Webhook tidak ditemukan

---

[API](https://skmtc.dev/tokolaku/apis/tokolaku-engine-api.md) · [All operations](https://skmtc.dev/tokolaku/apis/tokolaku-engine-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tokolaku/apis/tokolaku-engine-api/revisions/5d95caea34ef?raw)
