---
title: "Update Kpi"
method: PUT
path: "/api/kpi-library/{kpi_id}"
---

# Update Kpi

`PUT /api/kpi-library/{kpi_id}`

## Request

- Base URL: `https://fluxito.app` (the document declares no server; this is the origin it was published from)
- URL: `https://fluxito.app/api/kpi-library/{kpi_id}`
- Auth: none declared

## Path parameters

- `kpi_id` string, required

## Request body

- KPIPayload
  - `name` string, required
  - `slug` string, nullable
  - `aliases` string[]
  - `status` string
  - `version` integer
  - `description` string, required
  - `business_question` string, nullable
  - `interpretation_guide` string, nullable
  - `category` string, nullable
  - `tags` string[]
  - `expression` string, nullable
  - `time_grain` string, nullable
  - `unit` string, nullable
  - `format_spec` string, nullable
  - `direction` string, nullable
  - `inputs` KPIInputPayload[]
    - `key` string, required
    - `source` string, required
    - `connection_id` string, required
    - `binding` object
  - `target_value` number, nullable
  - `target_type` string, nullable
  - `expected_range_min` number, nullable
  - `expected_range_max` number, nullable
  - `owner` string, nullable
  - `source_of_truth_url` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fluxito/apis/fluxito-platform.md) · [All operations](https://skmtc.dev/fluxito/apis/fluxito-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/fluxito/apis/fluxito-platform/revisions/d558e1fe9a04?raw)
