Create Dataset
Create Dataset
Create a new custom KPI dataset with optional inline KPI definitions
POST
Create Dataset
Create Dataset
Create a new custom KPI dataset for your organization. You can optionally include KPI definitions inline — each KPI defines a question that data owners will answer during campaigns.Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
string
required
Dataset name (1–255 characters)Example:
"Water Usage Survey"string
Dataset description (max 2000 characters)Example:
"Monthly water consumption across all facilities"array[object]
Optional list of KPI definitions to create with the dataset (max 100).Each KPI object accepts:
Response
Returns the created dataset with its KPI definitions (HTTP 201). The response uses the same shape as Get Dataset.string
Dataset UUID.
string
UUID of the organization that owns this dataset.
string
Dataset display name.
string | null
Dataset description.
string | null
UUID of the user who created the dataset.
datetime
Timestamp when the dataset was created
datetime | null
Timestamp when the dataset was last updated
array[object]
KPI definitions created with this dataset. See Get Dataset for the full KPI object shape.
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization422 Validation Error
Cause: Select KPI missing optionsRelated Endpoints
List Datasets
View all datasets
Get Dataset
View a single dataset with KPIs