- 概述
- 认证
- 智能体(Agent)
- 对话(Conversation)
- 语音(Voice)
- 形象(Avatar)
- 工具(Tool)
- 知识库(Datastore)
- 身份
- 自主任务
- 创建智能体POST
- 修改智能体信息PATCH
- 删除给定智能体DELETE
- 获取智能体列表GET
- 获取指定智能体GET
- 形象(Avatar)
- 声音(Voice)
- 凭证(Credentials)
- 身份(Identity)
- 模型(Model)
- 数据集(Datastore)
- 提示词(Prompt)
- 数据源(Datasource)
- 集成(Integration)
- 图像(Image)
- 工具(Tool)
- 工具集(Toolkit)
- 流程(Flow)
同步数据源
开发中
POST
/datasources/{id}/sync
请求参数
Path 参数
id
string
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openbot.chat/openapi/v1/datasources//sync'
返回响应
🟢200成功
application/json
Body
id
string
必需
name
string
数据源名称
type
string
数据源类型
status
string
数据源状态
last_sync
null
最后同步时间
options
object
数据源配置
url
string
必需
chunks
integer
分片数量
size
integer
总容量
datastore_id
string
数据集ID
created_at
string
创建时间
updated_at
string
最后更新时间
示例
{
"id": "string",
"name": "string",
"type": "string",
"status": "string",
"last_sync": null,
"options": {
"url": "string"
},
"chunks": 0,
"size": 0,
"datastore_id": "string",
"created_at": "string",
"updated_at": "string"
}
修改于 2023-05-31 12:46:21