v1

latestOpenAPI 3.0.1Apache 2.02026-07-1398228598.3 KB
Knowledge Base

Update KB Source

Updates the title and/or content of a KB source. If content is changed, triggers re-indexing.

patch/knowledge-base/sources/{sourceId}

Path parameters

sourceIdstring required

The unique identifier of the KB source

Request body

titlestring

Updated title

contentstring

Updated content (triggers re-indexing)

Example request

{
  "title": "Q4 Product Launch Playbook (Updated)",
  "content": "# Product Launch Playbook v2\n\n## Overview\nUpdated with lessons learned from beta launch..."
}

Response

KB source updated successfully

Example response

{
  "data": {
    "type": "kb_sources",
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "attributes": {
      "title": "Q4 Product Launch Playbook",
      "source_type": "manual",
      "content": "# Product Launch Playbook\n\n## Overview\nThis document covers the key steps...",
      "format": "text/markdown",
      "status": "indexed",
      "file_size": 4096,
      "chunk_count": 12,
      "created_at": "2025-01-15T10:30:00Z",
      "updated_at": "2025-01-15T10:35:00Z"
    }
  }
}