- OpenAPI
- Assistant
- Knowledge
- Flow
- Workflow
Create Knowledge
POST
/api/v2/filelib/
OpenAPIKnowledge
请求参数
Body 参数application/json
name
string
必需
description
string
可选
model
string
必需
is_partition
boolean
可选
示例
{
"name": "api创建1",
"description": "描述",
"model": "11",
"is_partition": false
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://192.168.50.15:7860/api/v2/filelib/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "api创建1",
"description": "描述",
"model": "11",
"is_partition": false
}'
返回响应
🟢201成功
application/json
Body
status_code
integer
必需
status_message
string
必需
data
object
必需
collection_name
string
必需
name
string
必需
description
string
必需
create_time
string
必需
id
integer
必需
model
string
必需
user_id
integer
必需
index_name
string
必需
update_time
string
必需
示例
{
"status_code": 200,
"status_message": "SUCCESS",
"data": {
"collection_name": "col_1725452872_572f0c7e",
"name": "api创建1",
"description": "描述",
"create_time": "2024-09-04T12:27:52",
"id": 14,
"model": "11",
"user_id": 1,
"index_name": "col_1725452872_a6aa2c25",
"update_time": "2024-09-04T12:27:52"
}
}
🟠422Validation Error
修改于 2024-09-06 10:59:05