Add KPIs from the library
POST
/v1/kpis/library
const url = 'https://api.varman.io/v1/kpis/library';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"keys":["training_completion","devices_compliant"],"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/library \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "keys": [ "training_completion", "devices_compliant" ], "objectiveId": "sobj_abc123", "ownerMemberId": "mem_abc123" }'Adds KPIs from the built-in ISO 27001 / 27701 library by key, with suggested target, frequency and data source. Keys already added are skipped.
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
keys
required
Library keys to add. Keys already added are skipped.
Array<string>
Example
[ "training_completion", "devices_compliant"]objectiveId
string
Example
sobj_abc123ownerMemberId
string
Example
mem_abc123