---
title: "Patch a webhook"
method: PATCH
path: "/webhooks/{id}"
tags: ["Webhooks"]
---

# Patch a webhook

`PATCH /webhooks/{id}`

## Request

- Base URL: `https://api.intellihr.io`
- URL: `https://api.intellihr.io/webhooks/{id}`
- Auth: API key in header `Authorization`

## Parameters

- `#/parameters/resourceId` (unresolved $ref)

## Request body

- WebhooksPatch
  - `url` string: The webhook endpoint which the request will be sent to when the subscribed event is triggered. If it is not provided, it will be default to the one specified in creation
  - `webhookEventId` ResourceId (unresolved $ref)
  - `isEnabled` boolean: Denotes if this webhook is enabled. If it is not provided, it will be default to the one specified in creation
  - `source` string: A string specifying the source of creation for this webhook. If it is not provided, it will be default to the one specified in creation

## Response `200`

Success

- Webhooks
  - `data` object
    - `id` ResourceId (unresolved $ref)
    - `attributes` object
      - `url` string: The webhook endpoint which the request will be sent to when the subscribed event is triggered.
      - `webhookEventId` ResourceId (unresolved $ref)
      - `isEnabled` boolean: Specifies if this webhook is enabled
      - `source` string: A string specifying the source of creation for this webhook
      - `createdAt` RfcDateTime (unresolved $ref)
      - `updatedAt` RfcDateTime (unresolved $ref)

## Other responses

- `400` (unresolved $ref)
- `403` (unresolved $ref)
- `500` (unresolved $ref)

---

[API](https://skmtc.dev/intellihr/apis/intellihr-public-api.md) · [All operations](https://skmtc.dev/intellihr/apis/intellihr-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/intellihr/apis/intellihr-public-api/revisions/6529279c999b?raw)
