Update mutable fields on a knowledge base
Update mutable fields on a knowledge base.
Only name and description can be updated. The embedding
model configuration is pinned at creation time and cannot be
changed.
Args:
body (UpdateKnowledgeBaseRequest):
The fields to update; omitted fields stay unchanged.
knowledge_base_id (str):
The knowledge base to update.
user_id (str):
Injected authenticated user ID.
service (KnowledgeBaseService):
Injected knowledge base service.
Returns:
KnowledgeBaseView:
The knowledge base record after the update.
Headers
Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.
Path Parameters
The knowledge base id.
Body
Request body for updating a knowledge base.
Only mutable fields can be set here. The embedding model configuration is pinned at creation time and cannot be changed — switching it would invalidate every previously inserted vector.
Response
Successful Response
A knowledge base record as exposed to API clients.
Mirrors :class:KnowledgeBaseRecord with the internal
user_id / collection_name fields stripped — clients have
no business introspecting either.
The knowledge base identifier.
Display name of the knowledge base.
Free-form description.
Embedding model configuration pinned at creation.
Creation timestamp.
Last-update timestamp.