---
title: "PATCH /v2/{org_id}/webhooks/"
method: PATCH
path: "/v2/{org_id}/webhooks/"
tags: ["Others - By Org"]
---

# PATCH /v2/{org_id}/webhooks/

`PATCH /v2/{org_id}/webhooks/`

Django will happily PATCH in an empty request and vaporize a database object.

## Request body

- WebhookSerializerV2
  - `id` integer
  - `name` string, nullable
  - `description` string, nullable
  - `endpoint` string, uri, required
  - `version` 'v1' | 'v2', nullable
  - `headers` object
  - `enabled` boolean
  - `type` 'counts'

## Response `200`

Updated

- OptionalWebhookSerializer
  - `id` integer
  - `endpoint` string, uri, required

## Other responses

- `400` — Bad Request
- `403` — Forbidden

---

[API](https://skmtc.dev/density/apis/your-project-api.md) · [All operations](https://skmtc.dev/density/apis/your-project-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/density/your-project-api/revisions/eab10fe035e6/schema)
