Skip to main content
POST
/
datalakes
Create datalake
curl --request POST \
  --url https://api.prequel.co/import/datalakes \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "name": "S3 US East 1",
  "storage": "s3",
  "retention_window_days": 30,
  "bucket_s3": {
    "bucket_name": "prequel-import-data",
    "bucket_auth_method": "aws_iam_role",
    "prefix": "customer-a/"
  }
}
'
{
  "name": "S3 US East 1",
  "storage": "s3",
  "retention_window_days": 30,
  "bucket_s3": {
    "bucket_name": "prequel-import-data",
    "bucket_auth_method": "aws_iam_role",
    "prefix": "customer-a/"
  },
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
name
string
required
Example:

"S3 US East 1"

storage
enum<string>
required
Available options:
s3
retention_window_days
integer
required
Required range: x >= 1
Example:

30

bucket_s3
object
required

Response

Created

name
string
required
Example:

"S3 US East 1"

storage
enum<string>
required
Available options:
s3
retention_window_days
integer
required
Required range: x >= 1
Example:

30

bucket_s3
object
required
id
string<uuid>
required