Skip to main content
PATCH
/
api
/
orgs
/
{id}
/
kpis
/
{kpiId}
Update KPI
curl --request PATCH \
  --url https://atollhq.com/api/orgs/{id}/kpis/{kpiId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "goal_id": "<string>",
  "unit": "count",
  "unit_label": "<string>",
  "target_value": 123,
  "target_direction": "increase",
  "source_type": "manual",
  "stale_after_hours": 123
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://bytestream.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

id identifier

kpiId
string
required

kpiId identifier

Body

application/json
name
string
description
string
goal_id
string
unit
enum<string>
Available options:
count,
percentage,
currency,
duration,
ratio,
custom
unit_label
string
target_value
number
target_direction
enum<string>
Available options:
increase,
decrease,
maintain
source_type
enum<string>
Available options:
manual,
webhook,
api_poll,
formula
stale_after_hours
integer

Response

Successful response

The response is of type object.