> ## Documentation Index
> Fetch the complete documentation index at: https://kardow.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Webhook

> Enable or disable a webhook subscription

Toggle a webhook subscription on or off without deleting it.

## Path Parameters

<ParamField path="id" type="string" required>
  The subscription ID.
</ParamField>

## Request Body

<ParamField body="is_enabled" type="boolean" required>
  Set to `true` to enable or `false` to disable the subscription.
</ParamField>

## Examples

### Disable a webhook

```bash cURL theme={null}
curl --request PATCH \
  --url "https://api.kardow.com/webhooks/your-subscription-id" \
  --header "x-api-key: your-api-key-here" \
  --header "Content-Type: application/json" \
  --data '{"is_enabled": false}'
```

## Response

<ResponseField name="data" type="object">
  <Expandable title="properties">
    <ResponseField name="id" type="string">Subscription ID</ResponseField>
    <ResponseField name="event" type="string">Event name</ResponseField>
    <ResponseField name="target_type" type="string">Target type</ResponseField>
    <ResponseField name="target_url" type="string">Target URL</ResponseField>
    <ResponseField name="is_enabled" type="boolean">Updated enabled state</ResponseField>
    <ResponseField name="updated_at" type="string">ISO 8601 timestamp</ResponseField>
  </Expandable>
</ResponseField>


## OpenAPI

````yaml PATCH /webhooks/{id}
openapi: 3.1.0
info:
  title: Kardow Public API
  description: Public API for jobs and member automation on Kardow.
  version: 1.0.0
  contact:
    name: Kardow Support
    email: support@kardow.com
    url: https://kardow.com
servers:
  - url: https://api.kardow.com
    description: Production API
security:
  - ApiKeyAuth: []
paths:
  /webhooks/{id}:
    patch:
      tags:
        - Webhooks
      summary: Update Webhook
      description: Enable or disable an existing webhook subscription.
      operationId: updateWebhookSubscription
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Subscription UUID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWebhookSubscriptionRequest'
      responses:
        '200':
          description: Subscription updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookSubscriptionResponse'
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateWebhookSubscriptionRequest:
      type: object
      required:
        - is_enabled
      properties:
        is_enabled:
          type: boolean
      additionalProperties: false
    WebhookSubscriptionResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/WebhookSubscription'
      required:
        - data
    WebhookSubscription:
      type: object
      properties:
        id:
          type: string
          format: uuid
        event:
          type: string
          enum:
            - job.created
            - job.updated
            - job.approved
            - job.expired
            - job.deleted
            - job.status_changed
            - application.received
            - application.status_changed
            - user.created
            - subscription.created
            - subscription.canceled
            - payment.received
            - '*'
        target_type:
          type: string
          enum:
            - webhook
            - discord
            - slack
        target_url:
          type: string
          format: uri
        is_enabled:
          type: boolean
        created_at:
          type:
            - string
            - 'null'
          format: date-time
        updated_at:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - event
        - target_type
        - target_url
        - is_enabled
    ErrorEnvelope:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            code:
              type: string
            details: {}
            url:
              type: string
          required:
            - message
            - code
      required:
        - error
  responses:
    ValidationError:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    UnauthorizedError:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    NotFoundError:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Get yours from Settings > API Keys in the
        Kardow dashboard.

````