POST
/
v2
/
team
/
datasets
/
{dataset_id}
/
datasources
/
{datasource_id}
/
presign
curl --request POST \
  --url https://ai.data.cloud/api/v2/team/datasets/{dataset_id}/datasources/{datasource_id}/presign \
  --header 'Content-Type: application/json' \
  --header 'x-pd-api-key: <api-key>' \
  --data '{
  "expires_in": 600,
  "user_id": "tmm-dafasdfasdfasdf"
}'
{
  "code": 0,
  "data": {
    "presigned_url": "string",
    "expires_at": "2024-11-13T14:15:22.123Z"
  }
}

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

dataset_id
string
required

The ID of the dataset that contains the target data source.

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

datasource_id
string
required

The ID of the target data source.

To check data sources existing in a specified dataset, call GET /v2/team/datasets/{id}/datasources.

Body

application/json

Response

200 - application/json

The response is of type object.