Skip to main content
POST
TypeScript SDK

Authorizations

Authorization
string
header
required

Enter ApiKey <your-api-key> in Authorization, including the ApiKey prefix. In cURL and Python samples, <api-key> means this full value. The TypeScript SDK adds the prefix for you.

Path Parameters

datasetId
string
required

Dataset ID with prefix ds..

Pattern: ^ds\.[0-9a-f]{8}-[0-9a-f]{4}-[7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$

Body

application/json
names
string[]
required

Top-level fields of the uploaded rows to add as dataset fields, as the inferred fields name them. Each becomes a dataset field with the JSON schema inferred from the uploaded rows.

Required array length: 1 - 500 elements
Required string length: 1 - 128
Pattern: ^[a-z]([a-z0-9_]*[a-z0-9])?$

Response

Added dataset fields, with their values still being copied

Dataset fields created in one request.

fields
object[]
required

Dataset fields created by this request.