---
title: "Update Webhook"
method: PUT
path: "/webHooks/{webHookId}"
---

# Update Webhook

`PUT /webHooks/{webHookId}`

Update an existing webhook.

## Path parameters

- `webHookId` string, required

## Request body

- object
  - `active` boolean — Indicates if the webhook is active.
  - `customerIdentifiersToBeEnriched` string[] — List of customer identifiers enrichment available in the payload.
  - `eventNames` string[] — List of event names that trigger the webhook.
  - `maxAllowedConnections` integer — Maximum allowed concurrent connections for this webhook.
  - `methodType` string — HTTP method used by the webhook. Example: POST, PUT, GET or DELETE.
  - `name` string — Name of the webhook.
  - `slaInSeconds` integer — Expected delivery time of the event notification in seconds. This is used to track notifications that took more time than the SLA set.
  - `webHookHeaders` string[] — Headers sent with the webhook request.
  - `webHookType` string — Type of webhook, Example: HTTP
  - `webHookUrl` string — URL where the webhook sends its requests.

## Response `200`

200

- object
  - `data` object
    - `attribution` object
      - `createdOn` string
      - `lastUpdatedOn` string
      - `lastUpdatedBy` object
        - `id` integer
        - `code` string
        - `description` string
        - `name` string
        - `type` string
      - `createdBy` object
        - `id` integer
        - `code` string
        - `description` string
        - `name` string
        - `type` string
    - `webHookId` string
    - `name` string
    - `eventNames` string[]
    - `webHookUrl` string
    - `webHookType` string
    - `methodType` string
    - `webHookHeaders` object
      - `Authorization` string
      - `Content-Type` string
    - `noOfRetryAttempts` integer
    - `maxAllowedConnections` integer
    - `active` boolean
    - `slaInSeconds` integer
    - `consumerGroupId` string
    - `tillDetailsEnrichmentEnabled` boolean
    - `storeDetailsEnrichmentEnabled` boolean
    - `customerIdentifiersToBeEnriched` unknown[]
      - unknown
    - `awardedReferenceEnrichmentEnabled` boolean
    - `availablePointsBalanceEnrichmentEnabled` boolean
  - `errors` unknown
  - `warnings` unknown

## Other responses

- `400` — 400

---

[API](https://skmtc.net/capillarytech/apis/sample-api.md) · [All operations](https://skmtc.net/capillarytech/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/capillarytech/sample-api/revisions/de241f2ed9b3/schema)
