知识管理

更新知识

更新知识条目信息

put/knowledge/{id}

Path parameters

idstring required

知识ID

Request body

channelstring

Channel indicates through which channel the knowledge was ingested (web, api, browser_extension, wechat, etc.)

created_atstring

Creation time of the knowledge

descriptionstring

Description of the knowledge

embedding_model_idstring

ID of the embedding model

enable_statusstring

Enable status of the knowledge

error_messagestring

Error message of the knowledge

file_hashstring

File hash of the knowledge

file_namestring

File name of the knowledge

file_pathstring

File path of the knowledge

file_sizeinteger

File size of the knowledge

file_typestring

File type of the knowledge

idstring

Unique identifier of the knowledge

knowledge_base_idstring

ID of the knowledge base

knowledge_base_namestring

Knowledge base name (not stored in database, populated on query)

last_faq_import_resultinteger[]

Last FAQ import result (for FAQ type knowledge only)

metadatainteger[]

Metadata of the knowledge

parse_statusstring

Parse status of the knowledge

pending_subtasks_countinteger

PendingSubtasksCount is the outstanding enrichment subtask count (summary + question + graph chunks). Only meaningful while ParseStatus == "finalizing"; defaults to 0 in any terminal state.

processed_atstring

Processed time of the knowledge

sourcestring

Source of the knowledge (e.g. URL address for url type, "manual" for manual type)

storage_sizeinteger

Storage size of the knowledge

summary_statusstring

Summary status for async summary generation

tag_idstring

Optional tag ID for categorization within a knowledge base

tenant_idinteger

Tenant ID

titlestring

Title of the knowledge

typestring

Type of the knowledge

updated_atstring

Last updated time of the knowledge

Response

更新成功

object required

Changes