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

# Update a plugin



## OpenAPI

````yaml https://raw.githubusercontent.com/webhookx-io/webhookx/refs/heads/main/openapi.yml put /workspaces/{ws_id}/plugins/{id}
openapi: 3.0.3
info:
  title: WebhookX Admin API
  contact:
    name: WebhookX
    url: https://github.com/webhookx-io/webhookx
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.1
servers:
  - url: http://localhost:9601
security: []
paths:
  /workspaces/{ws_id}/plugins/{id}:
    parameters:
      - $ref: '#/components/parameters/workspace_id'
    put:
      tags:
        - Plugin
      summary: Update a plugin
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Plugin'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Plugin'
components:
  parameters:
    workspace_id:
      in: path
      name: ws_id
      required: true
      schema:
        type: string
        example: default
      description: The workspace id
  schemas:
    Plugin:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        enabled:
          type: boolean
          default: true
        endpoint_id:
          type: string
          nullable: true
        source_id:
          type: string
          nullable: true
        config:
          type: object
          default: {}
        metadata:
          $ref: '#/components/schemas/Metadata'
        created_at:
          type: integer
          readOnly: true
        updated_at:
          type: integer
          readOnly: true
    Metadata:
      type: object
      additionalProperties:
        type: string
      default: {}

````