知识库接口表格型
新增数据
接口描述
通过表格数据库的table_id向表格中插入多行数据rows,row的结构与表头有关。
基础信息
| 请求地址 | /dataset/table/data/insert |
|---|---|
| 请求域名 | • 办公网域名:http://jiuwen-api.vmic.xyz/v1 • IDC域名:http://jiuwen-api.vivo.lan:8080/v1 |
| 请求方法 | POST |
请求参数
Request Body
| 参数名 | 类型 | 说明 |
|---|---|---|
table_id | string | {props?.table_id} |
rows | list | 行数据 |
示例
Request
curl --location --request POST '${props?.api_base_url}/dataset/table/data/insert' \
--header 'Authorization: Bearer ENTER-YOUR-SECRET-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"table_id":"5310-124f-47f4-aed0","rows":[{"xx1":"贝贝","name2":"吃南瓜"},{"xx2":"呵呵","name2":"皇帝"}]}'Response
{
"success": "true"
}