Compute a KPI from Varman data
POST
/v1/kpis/{id}/compute
const url = 'https://api.varman.io/v1/kpis/example/compute';const options = {method: 'POST', headers: {'X-API-Key': '<X-API-Key>'}};
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/example/compute \ --header 'X-API-Key: <X-API-Key>'For KPIs with an automatic source, returns the current value computed from platform data (training, phishing, policies, vendors, devices, cloud tests, risks, inventories). Nothing is saved; record the value to keep it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string