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
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
string
required
UUID of the parent datasetExample:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"Body Parameters
string
required
KPI name (1–255 characters)Example:
"Monthly electricity consumption"string
KPI description (max 2000 characters)Example:
"Total kWh consumed from all sources"string
Measurement unit (max 50 characters)Example:
"kWh", "m³", "tonnes"string
default:"number"
Expected answer type. One of:
number, text, percentage, date, boolean, selectboolean
default:"true"
Whether a response value is mandatory
integer
default:"0"
Display order within the dataset (0-based)
array[object]
Required for
select type. List of selectable options (2–100). Each object has:Options are forbidden for non-select types.
Response
Returns the created KPI definition (HTTP 201).string
KPI UUID.
string
Parent dataset UUID.
string
KPI display name.
string | null
KPI description.
string | null
Measurement unit (e.g.
m³, kWh).string
Data type:
number, text, percentage, date, boolean, or select.boolean
Whether a response value is mandatory.
integer
Display order within the dataset.
array[object]
Available choices for
select-type KPIs. Each has id, label, and sort_order.datetime
Timestamp when the KPI was created
datetime | null
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