Create a KPI
POST
/v1/kpis
const url = 'https://api.varman.io/v1/kpis';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"Security awareness training completion","description":{},"unit":"percent","direction":"higher_better","target":95,"warningThreshold":85,"frequency":"monthly","dataSource":{},"objectiveId":"sobj_abc123","ownerMemberId":"mem_abc123"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/kpis \ --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" }'Create a KPI in Varman. Set ISO 27001 security objectives, track KPIs per period, compute values from platform data and link results to controls as evidence.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
Example
Security awareness training completiondescription
object
unit
required
string
direction
required
string
target
required
number
Example
95warningThreshold
Value between target and failure that counts as at risk. Null means none.
object
Example
85frequency
required
string
dataSource
Where the number comes from
object
objectiveId
object
Example
sobj_abc123ownerMemberId
object
Example
mem_abc123