Update KPI
Update KPI
Update a KPI definition within a dataset
PATCH
Update KPI
Update KPI
Update one or more fields of a KPI definition. Only send the fields you want to change.For
select KPIs: when you send options, the array replaces the current options entirely. Include existing option ids to keep them (optionally renaming/reordering); omit an id to delete that option. New options (without id) are created.Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
UUID of the parent dataset
UUID of the KPI to update
Body Parameters
All fields are optional — only send what you want to change.KPI name (1–255 characters)
KPI description (max 2000 characters)
Measurement unit (max 50 characters)
Answer type:
number, text, percentage, date, boolean, selectWhether a response value is mandatory
Display order within the dataset (0-based)
For
select KPIs: full replacement array of options (2–100). Each object:| Field | Type | Description |
|---|---|---|
id | string | Existing option UUID to keep (omit for new options) |
label | string | Option label (1–255 chars) |
sort_order | integer | Display order |
Response
Returns the updated KPI definition (HTTP 200).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.Creation timestamp (ISO 8601).
Last update timestamp (ISO 8601).
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization404 Not Found
Cause: KPI not found422 Validation Error
Cause: Empty options array for a select KPIRelated Endpoints
Create KPI
Add a new KPI to the dataset
Delete KPI
Remove a KPI definition

