You need to enable JavaScript to run this app.
文档中心
AgentKit

AgentKit

复制全文
下载 pdf
Knowledge
UpdateKnowledgeBase - 更新知识库
复制全文
下载 pdf
UpdateKnowledgeBase - 更新知识库
更新知识库。​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:UpdateKnowledgeBase​
要执行的操作,取值:UpdateKnowledgeBase。​
​
Version string 必选 示例值:2025-10-30​
API的版本,取值:2025-10-30。​
​
Description string 可选 示例值:sample description.​
知识库的描述。​
  • 参数 - N:表示知识库的序号,取值范围:1~10。​
  • 不填默认为空。​
  • 多个字段名之间用&分隔。​
​
KnowledgeId string 必选 示例值:kb-123​
知识库ID。​
  • 参数 - N:表示知识库的序号,取值范围:1~10。​
  • 多个字段名之间用&分隔。​
取值:​
  • Viking知识库需使用ResourceId。​
​
VpcConfig.VpcId string 必选 示例值:vpc-257gqcdfvx6n****​
私有网络ID。​
说明​
一旦设定后不支持变更。​
​
VpcConfig.SubnetIds.N string[] 可选 示例值:["subnet-1", "subnet-2"]​
子网ID列表。​
  • 每个子网占用一个IP用于创建网卡。​
  • 传入多个子网来实现VPC连接的高可用。​
  • 每个可用区最多传入一个子网。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
KnowledgeId string 示例值:kb-ye7s2g****​
知识库ID。​
​
ProviderKnowledgeId string 示例值:kb-ye7s2g****​
已导入的知识库ID。​
​
ProviderType string 示例值:VIKINGDB_KNOWLEDGE​
知识库平台类型,取值:​
  • VIKINGDB_KNOWLEDGE:Viking 知识库。​
​
​
​
请求示例​
​
POST https://agentkit.cn-beijing.volcengineapi.com?Action=UpdateKnowledgeBase&Version=2025-10-30 HTTP/1.1​
Content-Type: application/json​
{​
{​
"KnowledgeBases":[​
{​
"ProviderType": "VIKINGDB_KNOWLEDGE",​
"VpcConfig.VpcId": "vpc-257gqcdfvx6n****"​
}​
],​
}​
}​
​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "202106111445100102252431000052****",​
"Action": "UpdateKnowledgeBase",​
"Version": "2025-10-10",​
"Service": "agentkit",​
"Region": "cn-beijing"​
},​
"Result": {​
"KnowledgeId": "kb-4yds45***",​
"ProviderKnowledgeId": "kb-ye7s2g****",​
"ProviderType": "VIKINGDB_KNOWLEDGE"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidDescription.Malformed​
The specified Description is malformed.​
指定的描述格式错误。​
400​
LimitExceeded.MinimumSubnetIds​
The number of specified SubnetIds exceeds the minimum limit.​
指定的SubnetIds超过最小限制。​
400​
MissingParameter.KnowledgeId​
The required parameter KnowledgeId is not supplied.​
参数KnowledgeId不能为空。​
400​
MissingParameter.VpcId​
The required parameter VpcId is not supplied.​
参数VpcId不能为空。​
​
​
最近更新时间:2026.02.14 11:21:12
这个页面对您有帮助吗?
有用
有用
无用
无用