Record a KPI result
POST
/v1/kpis/{id}/measurements
const url = 'https://api.varman.io/v1/kpis/example/measurements';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"value":92.5,"periodDate":"2026-09-30","notes":"Two people on leave."}'};
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/measurements \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "value": 92.5, "periodDate": "2026-09-30", "notes": "Two people on leave." }'Records the value for the period containing periodDate (default today). Recording the same period again replaces the earlier value.
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
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
value
required
number
Example
92.5periodDate
Any date inside the period being measured. Defaults to today (current period).
string
Example
2026-09-30notes
string
Example
Two people on leave.