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

# Rename, enable or disable a key



## OpenAPI

````yaml openapi.json PATCH /v1/keys/{id}
openapi: 3.1.0
info:
  title: DocKiln API
  version: 1.1.0-review
  description: >-
    Workspace-scoped document generation. All timestamps are Unix milliseconds
    unless documented otherwise. The parity additions in this review
    specification require the matching server build. Dynamic rendering also
    requires operator configuration.
servers:
  - url: https://dockiln.io
    description: DocKiln hosted API
security: []
paths:
  /v1/keys/{id}:
    patch:
      summary: Rename, enable or disable a key
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  maxLength: 80
                  minLength: 1
                enabled:
                  type: boolean
      responses:
        '200':
          description: Rename, enable or disable a key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Key'
          headers:
            X-Request-Id:
              description: Server-generated correlation ID
              schema:
                type: string
        default:
          description: Request failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Problem'
          headers:
            X-Request-Id:
              description: Server-generated correlation ID
              schema:
                type: string
      security:
        - session: []
components:
  schemas:
    Key:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        created:
          type: integer
        enabled:
          type: integer
          enum:
            - 0
            - 1
    Problem:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: dockiln

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.