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

# Update knowledge item

> Update a text, link or memory knowledge item. Changing content or url re-indexes the item; pdf and icon items are managed in the dashboard.



## OpenAPI

````yaml /api-reference/api.json patch /v1/knowledge/{knowledgeItemId}
openapi: 3.0.0
info:
  title: QA.tech API
  version: 1.0.0
  contact:
    name: QA.tech
    url: https://qa.tech
    email: support@qa.tech
  description: API for triggering and managing AI-powered test runs
servers:
  - url: https://api.qa.tech
    description: Production
    variables: {}
security:
  - BearerAuth: []
tags:
  - name: Runs
  - name: Infrastructure
  - name: Test Cases
  - name: Application Builds
  - name: Status badge
  - name: Remote Tunnels
  - name: Chat
  - name: Applications
  - name: Features
  - name: Metrics
  - name: Release Checks
  - name: Projects
  - name: Knowledge
  - name: Rules
paths:
  /v1/knowledge/{knowledgeItemId}:
    patch:
      tags:
        - Knowledge
      summary: Update knowledge item
      description: >-
        Update a text, link or memory knowledge item. Changing content or url
        re-indexes the item; pdf and icon items are managed in the dashboard.
      operationId: UpdateKnowledgeItem
      parameters:
        - name: knowledgeItemId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateKnowledgeItemRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateKnowledgeItemResponse'
components:
  schemas:
    UpdateKnowledgeItemRequest:
      type: object
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 200
        content:
          type: string
          minLength: 1
          maxLength: 50000
          description: >-
            New text content. Only valid for text and memory items; triggers
            re-indexing.
        url:
          type: string
          format: uri
          description: New URL to crawl. Only valid for link items; triggers a re-crawl.
        projectShortId:
          allOf:
            - $ref: '#/components/schemas/ProjectShortId'
          description: >-
            Target a specific project by its prefixed short ID
            (proj-slug_shortId or proj_shortId), as returned by the projects
            API. Required for organization-scoped API keys; project-scoped keys
            may only pass their own project's short ID.
    UpdateKnowledgeItemResponse:
      type: object
      required:
        - success
        - item
      properties:
        success:
          type: boolean
        item:
          $ref: '#/components/schemas/KnowledgeItem'
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    KnowledgeItem:
      type: object
      required:
        - id
        - type
        - title
        - url
        - status
        - createdAt
        - updatedAt
        - content
      properties:
        id:
          type: string
        type:
          $ref: '#/components/schemas/KnowledgeItemType'
        title:
          type: string
        url:
          type: string
          nullable: true
          description: Source URL for link items, null for other types
        status:
          type: string
          description: Ingestion status, e.g. PENDING, PROCESSING, COMPLETED or FAILED
        createdAt:
          type: string
        updatedAt:
          type: string
        content:
          type: string
          nullable: true
          description: Text content for text and memory items, null for other types
    KnowledgeItemType:
      type: string
      enum:
        - pdf
        - link
        - text
        - icon
        - memory
      description: >-
        All knowledge item types. `pdf` and `icon` items are managed in the
        dashboard.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````