查询添加状态
查询添加状态
通过该 API 接口,发送请求以查询添加表数据任务的处理状态。
请求方式
GET
调用地址
https://api.gptbots.cn/v1/database/query/import-results
调用验证
详情参见 API 概述的鉴权方式说明。
请求
请求示例
curl -X GET 'https://api.gptbots.cn/v1/database/query/import-results?ids=id1&ids=id2' \
--header 'Authorization: Bearer your_apikey'
curl -X GET 'https://api.gptbots.cn/v1/database/query/import-results?ids=id1&ids=id2' \
--header 'Authorization: Bearer your_apikey'
此代码块在浮窗中显示
请求头
| 字段 | 类型 | 描述 |
|---|---|---|
| Authorization | Bearer ${token} | 使用 Authorization: Bearer ${token}进行调用验证,请在 API 密钥页面获取密钥作为 token。 |
| Content-Type | application/json | 数据类型,取值为 application/json。 |
查询参数
| 字段 | 类型 | 必填 | 描述 |
|---|---|---|---|
| ids | list | 是 | 添加数据任务id集合。 |
响应
响应示例
{
"code": 0,
"message": "OK",
"data": [
{
"id": "673e9cda9f7bc178002dbd9c",
"progress": 0,
"status": "FAIL"
}
]
}
{
"code": 0,
"message": "OK",
"data": [
{
"id": "673e9cda9f7bc178002dbd9c",
"progress": 0,
"status": "FAIL"
}
]
}
此代码块在浮窗中显示
成功响应
| 字段 | 类型 | 描述 |
|---|---|---|
| code | int | 消息的类型编码。 |
| message | string | 消息描述。 |
| progress | int | 进度值。 |
| status | string | 导数结果。 |
| id | string | 导数任务id。 |
失败响应
| 字段 | 类型 | 描述 |
|---|---|---|
| code | int | 错误码。 |
| message | string | 错误详情。 |
错误码
| Code | Message |
|---|---|
| 50000 | 系统内部错误 |
