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

# Update license key details

> Allows updating of specific fields in a license key such as expiration date, activation limit, or status. Requires `x-store-id` for validation.



## OpenAPI

````yaml patch /license-keys/{id}
openapi: 3.0.0
info:
  title: Blink API
  description: Comprehensive API documentation for Blink.
  version: 1.0.0
servers:
  - url: https://api.blink.store/v1
security: []
paths:
  /license-keys/{id}:
    patch:
      tags:
        - License Keys
      summary: Update license key details
      description: >-
        Allows updating of specific fields in a license key such as expiration
        date, activation limit, or status. Requires `x-store-id` for validation.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LicenseKeyUpdateRequest'
      responses:
        '200':
          description: License key updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LicenseKeyDetailResponse'
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '404':
          description: Not Found
components:
  schemas:
    LicenseKeyUpdateRequest:
      type: object
      properties:
        expires_at:
          type: string
          format: date-time
        activation_limit:
          type: integer
        status:
          type: string
    LicenseKeyDetailResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: string
            key:
              type: string
            status:
              type: string
            activations:
              type: integer
            activation_limit:
              type: integer
            expires_at:
              type: string
              format: date-time
            product:
              type: object
              properties:
                id:
                  type: string
                name:
                  type: string
            customer:
              type: object
              properties:
                id:
                  type: string
                name:
                  type: string
                email:
                  type: string
            order:
              type: object
              properties:
                id:
                  type: string
                amount:
                  type: number
                created_at:
                  type: string
                  format: date-time

````