Create KPI
Create KPI
Add a new KPI definition to an existing dataset
POST
Create KPI
Create KPI
Add a new KPI (question) definition to a dataset. Each KPI defines what data owners will be asked during campaigns.Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
UUID of the parent datasetExample:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"Body Parameters
KPI name (1–255 characters)Example:
"Monthly electricity consumption"KPI description (max 2000 characters)Example:
"Total kWh consumed from all sources"Measurement unit (max 50 characters)Example:
"kWh", "m³", "tonnes"Expected answer type. One of:
number, text, percentage, date, boolean, selectWhether a response value is mandatory
Display order within the dataset (0-based)
Required for
Options are forbidden for non-select types.
select type. List of selectable options (2–100). Each object has:| Field | Type | Required | Description |
|---|---|---|---|
label | string | Yes | Option label (1–255 chars, unique per KPI case-insensitive) |
sort_order | integer | No | Display order (default 0) |
Response
Returns the created KPI definition (HTTP 201).KPI UUID.
Parent dataset UUID.
KPI display name.
KPI description.
Measurement unit (e.g.
m³, kWh).Data type:
number, text, percentage, date, boolean, or select.Whether a response value is mandatory.
Display order within the dataset.
Available choices for
select-type KPIs. Each has id, label, and sort_order.Timestamp when the KPI was created
Timestamp when the KPI was last updated
Example
Successful Response
Select Type Example
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 options404 Not Found
Cause: Dataset not foundRelated Endpoints
Update KPI
Modify a KPI definition
Delete KPI
Remove a KPI from the dataset

