Query Status of Adding Table Data
Query Status of Adding Table Data
Use this API to query the processing status of tasks for adding table data.
Request Method
GET
Endpoint
https://api-${endpoint}.gptbots.ai/v1/database/query/import-results
Authentication
Refer to the authentication method description in API Overview for details.
Request
Request Example
curl -X GET 'https://api-${endpoint}.gptbots.ai/v1/database/query/import-results?ids=id1&ids=id2' \
-H 'Authorization: Bearer ${API Key}'
curl -X GET 'https://api-${endpoint}.gptbots.ai/v1/database/query/import-results?ids=id1&ids=id2' \
-H 'Authorization: Bearer ${API Key}'
บล็อกโค้ดนี้ในหน้าต่างลอย
Request Headers
Field | Type | Description |
---|---|---|
Authorization | Bearer ${API Key} | Use Authorization: Bearer ${API Key} for authentication. Get API key from API Key page. |
Query Parameters
Field | Type | Required | Description |
---|---|---|---|
ids | list | Yes | Collection of task IDs for adding data. |
Response
Response Example
{
"code": 0,
"message": "OK",
"data": [
{
"id": "673e9cda9f7bc178002dbd9c",
"progress": 0,
"status": "FAIL"
}
]
}
{
"code": 0,
"message": "OK",
"data": [
{
"id": "673e9cda9f7bc178002dbd9c",
"progress": 0,
"status": "FAIL"
}
]
}
บล็อกโค้ดนี้ในหน้าต่างลอย
Successful Response
Field | Type | Description |
---|---|---|
code | int | Type code of the message. |
message | string | Message description. |
progress | int | Progress value. |
status | string | Export result. |
id | string | Export task ID. |
Failed Response
Field | Type | Description |
---|---|---|
code | int | Error code. |
message | string | Error details. |
Error Codes
Code | Message |
---|---|
50000 | Internal system error |