Skip to main content
PATCH
/
knowledge-bases
/
{kb_id}
Update Knowledge Base
curl --request PATCH \
  --url https://api.truedy.ai/api/public/v1/knowledge-bases/{kb_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Updated Product FAQ",
  "description": "Updated description"
}
'
{
  "data": {
    "id": "kb_x9y8z7w6",
    "name": "Product FAQ v2",
    "description": "Frequently asked questions about our product line",
    "status": "ready",
    "source_count": 12,
    "chunk_count": 847,
    "embedding_model": "text-embedding-3-small",
    "created_at": "2026-03-01T09:00:00Z",
    "updated_at": "2026-04-05T10:22:00Z"
  },
  "meta": {
    "request_id": "req_32e7531c",
    "ts": "2026-04-05T10:22:00Z"
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header: Bearer <your_api_key>

Path Parameters

kb_id
string
required

Knowledge base ID

Body

application/json
name
string | null

Updated name

Required string length: 1 - 255
Example:

"Updated Documentation"

description
string | null

Updated description

Maximum string length: 1000
Example:

"Updated description"

Response

Knowledge base updated successfully

data
object
required
meta
object
required