GET
/
v1
/
team
/
datasets
/
{datasetId}
/
status
curl --request GET \
  --url https://ai.data.cloud/api/v1/team/datasets/{datasetId}/status \
  --header 'x-pd-api-key: <api-key>'
{
  "code": 0,
  "data": {
    "synchedCount": 5,
    "invalidCount": 0,
    "synchingCount": 0
  }
}

Authorizations

x-pd-api-key
string
header
required

Headers

x-pd-external-trace-id
string

The external trace ID. The length ranges from 0 to 128 characters.

Path Parameters

datasetId
string
required

The dataset ID.

Response

200 - application/json
code
integer
required

Status code. 0 indicates that the operation is successful. Otherwise, the operation fails. Possible error codes include:

  • 100: Bad request.
  • 201: Request frequency limit.
  • 9999: Internal error.
  • 100001: Invalid operation.
data
object
required

The returned data object. Your dataset is fully synchronized only when both invalidCount and synchingCount are 0. Otherwise, starting a conversation immediately cannot fetching data from data sourcs that are not synchronized.