---
title: "PATCH /event/{tenantLocator}/webhooks/{webhookLocator}"
method: PATCH
path: "/event/{tenantLocator}/webhooks/{webhookLocator}"
---

# PATCH /event/{tenantLocator}/webhooks/{webhookLocator}

`PATCH /event/{tenantLocator}/webhooks/{webhookLocator}`

## Request

- Base URL: `https://docs.socotra.com`
- URL: `https://docs.socotra.com/event/{tenantLocator}/webhooks/{webhookLocator}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/docs/event/:tenantLocator/webhooks/:webhookLocator/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `tenantLocator` string, uuid, required
- `webhookLocator` string, ulid, required

## Request body

- UpdateWebhookRequest
  - `name` string, required
  - `enabled` boolean, required
  - `removeEventTypes` string[], required
  - `addEventTypes` string[], required
  - `endpoint` UpdateEndpointRequest, required
    - `url` string, required
    - `removeHeaders` string[], required
    - `addHeaders` object, required
    - `secureSsl` boolean
    - `hmacEnabled` boolean
    - `secret` string
    - `tag` string
  - `removeFailureHandling` boolean, required
  - `failureHandling` FailureHandlingUpdateRequest, required
    - `removeAlertEndpoint` boolean, required
    - `alertEndpoint` UpdateEndpointRequest, required
      - `url` string, required
      - `removeHeaders` string[], required
      - `addHeaders` object, required
      - `secureSsl` boolean
      - `hmacEnabled` boolean
      - `secret` string
      - `tag` string
    - `removeTriggers` string[], required
    - `addTriggers` string[], required
    - `removeRetryStrategy` boolean, required
    - `retryStrategy` RetryStrategyUpdateRequest, required
      - `type` 'linear' | 'exponential', required
      - `interval` integer, required
      - `attempts` integer, required
    - `divert` boolean, required
    - `suspend` boolean, required

## Response `200`

OK

- WebhookResponse
  - `locator` string, ulid, required
  - `name` string, required
  - `enabled` boolean, required
  - `suspended` boolean, required
  - `suspendedAt` string, date-time, required
  - `eventTypes` string[], required
  - `endpoint` EndpointResponse, required
    - `url` string, required
    - `headers` object, required
    - `secureSsl` boolean, required
    - `hmacEnabled` boolean, required
    - `secret` string, required
    - `tag` string, required
  - `failureHandling` FailureHandlingResponse, required
    - `alertEndpoint` EndpointResponse, required
      - `url` string, required
      - `headers` object, required
      - `secureSsl` boolean, required
      - `hmacEnabled` boolean, required
      - `secret` string, required
      - `tag` string, required
    - `triggers` string[], required
    - `retryStrategy` RetryStrategyResponse, required
      - `type` 'linear' | 'exponential', required
      - `interval` integer, required
      - `attempts` integer, required
    - `divert` boolean, required
    - `suspend` boolean, required

---

[API](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi.md) - [All operations](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/revisions/77ee7d8172b9?raw)
