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
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
Dataset name (1–255 characters)Example:
"Water Usage Survey"Dataset description (max 2000 characters)Example:
"Monthly water consumption across all facilities"Optional list of KPI definitions to create with the dataset (max 100).Each KPI object accepts:
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | KPI name (1–255 chars) |
description | string | No | KPI description (max 2000 chars) |
unit | string | No | Measurement unit (max 50 chars), e.g. "m³", "kWh" |
value_type | string | No | Answer type: number (default), text, percentage, date, boolean, select |
required | boolean | No | Whether a value is mandatory (default true) |
sort_order | integer | No | Display order (default 0) |
options | array | Conditional | Required for select type — list of {label, sort_order} objects (2–100 options) |
Response
Returns the created dataset with its KPI definitions (HTTP 201). The response uses the same shape as Get Dataset.Dataset UUID.
UUID of the organization that owns this dataset.
Dataset display name.
Dataset description.
UUID of the user who created the dataset.
Timestamp when the dataset was created
Timestamp when the dataset was last updated
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

