GET
/
v2
/
team
/
datasets
/
{id}
/
datasources

Example request:

Example response:

200
{
  "code": 0,
  "data": {
    "total_items": 1,
    "page_size": 10,
    "page_number": 1,
    "records": [
      {
        "code": 0,
        "data": {
          "id": "ds-cm7aedl58000501fc52hjj5c3",
          "name": "ds1.xlsx",
          "type": "FILE",
          "status": "synched",
          "size": 14435,
          "dataset_id": "dset-cm7ae4d77028n01l1cnapd5si"
        }
      }
    ]
  }
}

Authorizations

x-pd-api-key
string
header
required

Headers

x-pd-external-trace-id
string

The trace ID you set in your system to trace this request. It can be up to 128 characters in length. If the request fails, you can provide it to the Powerdrill team to help with troubleshooting.

Path Parameters

id
string
required

The ID of the dataset of which the data sources you want to list.

To check the datasets you have access to, call GET /v2/team/datasets.

Query Parameters

page_number
integer

The page number to start listing. If not specified, the default value 1 will be used.

page_size
integer

The number of items on a single page. If not specified, the default value 10 will be used.

status
enum<string>

The status of data sources to list. Possible values are:

  • invalid: Awaiting processing.
  • synching: Currently processing.
  • synched: Successfully synchronized. If not specified, data sources in any status will be returned. Multiple statuses can be specified in a comma-separated list, and data sources matching any will be displayed.
Available options:
synching,
invalid,
synched
user_id
string
required

Your user ID, which uniquely identifies you within your team. To obtain your ID:

Response

200 - application/json
code
integer
required

Status code. 0 indicates that the operation is successful. Otherwise, the operation fails. For error troubleshooting, refer to Error Codes.

data
object
required

A paginated list of data sources.