Skip to main content
POST
/
api
/
v1
/
knowledge
/
bases
创建知识库
curl --request POST \
  --url http://localhost:5300/api/v1/knowledge/bases \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "engine_plugin_id": "<string>",
  "creation_settings": {}
}
'
{
  "code": 0,
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

X-API-Key
string
header
required

Body

application/json
name
string
required
description
string
engine_plugin_id
string

知识引擎插件 ID(author/name 格式)

creation_settings
object

引擎创建参数

Response

200 - application/json

创建成功

code
integer
Example:

0

data
object