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

# Update Knowledge Base

> Update a knowledge base name or settings.

<span data-api-safety-label="changes-state"><Badge color="yellow" size="sm" shape="pill">Changes state - verify before retry</Badge></span>

<Info>
  **v1 only.** Knowledge bases are available on the `/v1` API. There is no legacy unversioned equivalent.
</Info>

Update a knowledge base. Today this changes its `name`. The new name must be unique within your workspace.

## When to use this

* **Renaming**: keep knowledge base names aligned with the product line or customer they cover as those names change on your side.
* **Naming conventions**: bring older knowledge bases in line with a naming scheme so pickers stay readable.

Renaming does not affect the agents that reference the knowledge base; they keep working with the same `id`. A `400 Bad Request` means the new name is invalid or already taken. See [Errors](/docs/api-reference/errors) for the standard error format.

```json theme={null}
{
  "name": "Updated loan qualification FAQ"
}
```

Fetch the same `kb_` ID after the update and confirm the name changed. If the request timed out, read the resource before retrying.


## OpenAPI

````yaml PATCH /v1/knowledge-base/{id}
openapi: 3.0.0
info:
  title: DialNexa API
  description: >-
    Public REST API for the DialNexa voice AI platform. Versioned endpoints are
    under /v1; unversioned endpoints are legacy and deprecated.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: API Keys
  - name: Agent Functions
  - name: Agents V1
  - name: Agents2
  - name: Batch Calls
  - name: Batch Calls V1
  - name: Call Logs
  - name: Calls
  - name: Calls V1
  - name: Campaign Leads
  - name: Campaigns
  - name: External Webhooks
  - name: Knowledge Base
  - name: Knowledge Base V1
  - name: LLMs
  - name: LLMs V1
  - name: Languages
  - name: Languages V1
  - name: Organization Phone Numbers
  - name: Organization Phone Numbers V1
  - name: Phone Number Pricing
  - name: Phone Number Pricing V1
  - name: Transcribers
  - name: Transcribers V1
  - name: User Webhooks
  - name: User Webhooks V1
  - name: V1
  - name: Voices
  - name: Voices V1
  - name: Webcall
  - name: Workflow Leads
  - name: Workflow Leads V1
  - name: Workflows
  - name: Workflows V1
paths:
  /v1/knowledge-base/{id}:
    patch:
      tags:
        - Knowledge Base
        - Knowledge Base V1
        - V1
      summary: Update Knowledge Base
      description: Renames one knowledge base without changing its ID or agent attachments.
      operationId: KnowledgeBaseV1Controller_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateKnowledgeBaseDto'
            examples:
              request:
                summary: Update a knowledge base
                value:
                  name: Updated Loan FAQ
      responses:
        '200':
          description: Knowledge base updated successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeBase'
              examples:
                success:
                  summary: Successful response
                  value:
                    id: kb_abc123
                    name: Updated Loan FAQ
                    description: Frequently asked questions for loan calls
                    file_name: loan-faq.pdf
                    status: ready
                    createdAt: '2026-07-03T10:30:00.000Z'
        '409':
          description: New name already in use in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                error:
                  summary: 409 Conflict
                  value:
                    statusCode: 409
                    message: Knowledge base with this name already exists
                    error: Conflict
      security:
        - bearer: []
components:
  schemas:
    UpdateKnowledgeBaseDto:
      type: object
      properties:
        name:
          type: string
          description: Name of the knowledge base
          example: Updated Product Documentation
    KnowledgeBase:
      type: object
      properties:
        id:
          type: string
          example: kb_abc123
          description: Signed knowledge base ID.
        name:
          type: string
          example: Loan FAQ
          maxLength: 150
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - name
    ErrorResponse:
      type: object
      properties:
        statusCode:
          type: integer
          example: 400
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          example: phone_number must be a valid E.164 phone number
        error:
          type: string
          example: Bad Request
      required:
        - statusCode
        - message
        - error
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````