---
title: "Toggle webhook active state"
method: PATCH
path: "/api/orgs/{slug}/webhooks/{id}"
tags: ["Webhooks"]
---

# Toggle webhook active state

`PATCH /api/orgs/{slug}/webhooks/{id}`

## Request

- Base URL: `https://trydock.ai`
- URL: `https://trydock.ai/api/orgs/{slug}/webhooks/{id}`
- Auth: HTTP bearer

Enable or disable a webhook without deleting it. Body: `{ active: boolean }`.

## Path parameters

- `slug` string, required
- `id` string, required

## Request body

- object
  - `active` boolean, required

## Response `200`

Updated.

- object
  - `webhook` object, required
    - `id` string, required
    - `url` string, uri, required
    - `active` boolean, required

## Other responses

- `404`: Not found.

---

[API](https://skmtc.dev/trydock/apis/dock-rest-api.md) - [All operations](https://skmtc.dev/trydock/apis/dock-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trydock/apis/dock-rest-api/revisions/dd96ae96a412?raw)
