> ## 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 Blacklist Entry

> Updates the IP address or reason for an existing blacklist entry



## OpenAPI

````yaml PATCH /blacklists/{id}
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:
  /blacklists/{id}:
    patch:
      summary: Update a blacklist entry
      description: Updates the IP address or reason for an existing blacklist entry
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ip:
                  type: string
                reason:
                  type: string
      responses:
        '200':
          description: Blacklist entry updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Blacklist'
components:
  schemas:
    Blacklist:
      type: object
      required:
        - ip
      properties:
        _id:
          type: string
          readOnly: true
          description: Unique identifier for the blacklist entry
        ip:
          type: string
          description: Blacklisted IPv4 address
        reason:
          type: string
          description: Optional reason for blacklisting
        createdAt:
          type: string
          format: date-time
          readOnly: true
          description: Timestamp when the entry was created
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: MCL-Key
      description: API key must start with 'mcl_'

````