---
title: "Edit Webhook"
method: PATCH
path: "/webhooks/{organizationWebhookId}"
tags: ["Organization Webhooks"]
---

# Edit Webhook

`PATCH /webhooks/{organizationWebhookId}`

## Request

- Base URL: `https://api.crowdin.com/api/v2`
- URL: `https://api.crowdin.com/api/v2/webhooks/{organizationWebhookId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/docs/webhooks/:organizationWebhookId/patch.ts> (a function with typed inputs; its response is checked against the schema)

**Required scopes:** `webhook` (Read and Write).

## Path parameters

- `organizationWebhookId` integer, required

## Request body

- OrganizationWebhookOperation[]: A JSON Patch document as defined by <a href="https://tools.ietf.org/html/rfc6902#section-3" target="_blank">RFC 6902</a>
  - `op` 'replace' | 'test', required: Patch operation to perform
  - `path` '/name' | '/isActive' | '/batchingEnabled' | '/contentType' | '/events' | '/headers' | '/requestType' | '/payload', json-pointer, required: A JSON Pointer as defined by <a href="https://tools.ietf.org/html/rfc6901" target="_blank">RFC 6901</a>

## Response `200`

Webhook was successfully updated

- EnterpriseOrganizationWebhookResource: Base schema of resource container. Container is a wrapper object that contains payload in required `data` property and provides space for adding any other metadata.
  - `data` EnterpriseOrganizationWebhook, required
    - `id` integer
    - `name` string
    - `url` string, nullable
    - `events` string[]
    - `headers` string[]
    - `payload` object: Read more about [Events payload examples](https://developer.crowdin.com/webhooks). Additionally, you can check out Events payloads while creating webhooks via UI in your Crowdin project > Tools tab > Webhooks section > click Add webhook.
    - `isActive` boolean
    - `batchingEnabled` boolean
    - `requestType` string
    - `contentType` string, nullable
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400`: Invalid Request Body
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Webhook with specified id was not found
- `405`: Method Not Allowed
- `500`: Internal Server Error

---

[API](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2.md) - [All operations](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/crowdin/apis/crowdin-enterprise-api-v2/revisions/dc68744c5384?raw)
