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

# Update Plugin

> Updates an existing plugin's information such as name and icon



## OpenAPI

````yaml PATCH /plugins/{pluginId}
openapi: 3.0.1
info:
  title: MC License API
  description: API for validating and managing Minecraft plugin licenses
  version: 1.0.0
  license:
    name: MIT
servers:
  - url: https://api.mclicense.org
    description: Production API Server
security:
  - apiKey: []
paths:
  /plugins/{pluginId}:
    patch:
      summary: Update a plugin
      description: Updates an existing plugin's information such as name and icon
      parameters:
        - name: pluginId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                icon:
                  type: string
      responses:
        '200':
          description: Plugin updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Plugin'
components:
  schemas:
    Plugin:
      type: object
      required:
        - name
      properties:
        _id:
          type: string
          readOnly: true
          description: Unique identifier for the plugin
        name:
          type: string
          description: Name of the plugin
        icon:
          type: string
          description: URL to the plugin's icon
        marketplace:
          type: object
          properties:
            type:
              type: string
              enum:
                - Polymart
                - BuiltByBit
            id:
              type: string
            url:
              type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: MCL-Key
      description: API key must start with 'mcl_'

````