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

# Update a webhook endpoint



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/webhooks/{id}
openapi: 3.0.0
info:
  title: PlugKit API
  description: >-
    One API to publish, schedule and message across Instagram, WhatsApp, TikTok,
    Telegram, YouTube and X.
  version: 1.0.0
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/webhooks/{id}:
    patch:
      tags:
        - webhooks
      summary: Update a webhook endpoint
      operationId: WebhookEndpointsController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWebhookDto'
      responses:
        '200':
          description: ''
      security:
        - api-key: []
components:
  schemas:
    UpdateWebhookDto:
      type: object
      properties:
        url:
          type: string
          example: https://example.com/hooks/plugkit
        events:
          type: array
          items:
            type: string
            enum:
              - post.published
              - post.partial
              - post.failed
              - message.received
              - message.sent
              - message.undelivered
              - account.disconnected
              - comment.received
              - comment.dm_sent
              - broadcast.finished
              - usage.threshold_reached
        enabled:
          type: boolean
          description: Pause deliveries without deleting the endpoint.
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: sk_...
      type: http

````