Skip to main content
POST
/
import
/
datasets
/
{id}
/
random-sample
Random sample dataset
curl --request POST \
  --url https://api.prequel.co/import/datasets/{id}/random-sample \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "sample_size": 123
}
'
{
  "status": "<string>",
  "data": {
    "schema": [
      {
        "name": "<string>",
        "database_type_name": "<string>",
        "length": 123,
        "precision": 123,
        "scale": 123,
        "nullable": true
      }
    ],
    "records": [
      "<unknown>"
    ]
  },
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://import-docs.prequel.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

Import Dataset ID.

Body

application/json
sample_size
integer
required

Response

OK

status
string
required
Allowed value: "success"
data
object
required
message
string
required