Query Status of Adding Table Data
Last updated:2024-11-21
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.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.gptbots.ai/v1/database/query/import-results?ids=id1&ids=id2' \
--header 'Authorization: Bearer your_apikey'
curl -X GET 'https://api.gptbots.ai/v1/database/query/import-results?ids=id1&ids=id2' \
--header 'Authorization: Bearer your_apikey'
This code block in the floating window
Request Headers
Field | Type | Description |
---|---|---|
Authorization | Bearer ${token} | Use Authorization: Bearer ${token} for authentication. Obtain the token from the API key page. |
Content-Type | application/json | Data type, value is application/json. |
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"
}
]
}
This code block in the floating window
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 |