跳转到主要内容
PUT
/
api
/
v1
/
knowledge
/
bases
/
{kb_uuid}
更新知识库
curl --request PUT \
  --url http://localhost:5300/api/v1/knowledge/bases/{kb_uuid} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>"
}
'
{
  "code": 0,
  "msg": "ok",
  "data": {}
}

授权

X-API-Key
string
header
必填

使用 X-API-Key 请求头进行 API 密钥认证。 示例:X-API-Key: lbk_your_api_key_here

路径参数

kb_uuid
string
必填

知识库 UUID

请求体

application/json
name
string
description
string

响应

200 - application/json

更新成功

code
integer
示例:

0

msg
string
示例:

"ok"

data
object