Skip to content

Update a KPI

PATCH
/v1/kpis/{id}
curl --request PATCH \
--url https://api.varman.io/v1/kpis/example \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "name": "Security awareness training completion", "description": {}, "unit": "percent", "direction": "higher_better", "target": 95, "warningThreshold": 85, "frequency": "monthly", "dataSource": {}, "objectiveId": "sobj_abc123", "ownerMemberId": "mem_abc123" }'

Updates a KPI target, at-risk threshold, frequency, owner, objective or data source. Changing frequency moves the next due date.

id
required
string
X-Organization-Id
string
Media typeapplication/json
object
name
string

Example

Security awareness training completion
description
object
unit
string
Allowed values: percent count days hours currency
direction
string
Allowed values: higher_better lower_better
target
number

Example

95
warningThreshold

Value between target and failure that counts as at risk. Null means none.

object

Example

85
frequency
string
Allowed values: monthly quarterly annually
dataSource

Where the number comes from

object
objectiveId
object

Example

sobj_abc123
ownerMemberId
object

Example

mem_abc123