Set controls a KPI gives evidence for
PUT
/v1/kpis/{id}/controls
const url = 'https://api.varman.io/v1/kpis/example/controls';const options = { method: 'PUT', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"controlIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.varman.io/v1/kpis/example/controls \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "controlIds": [ "example" ] }'Replaces the controls linked to a KPI. Linked KPIs show on the control page as measurement evidence for its requirements.
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
controlIds
required
Control ids. Replaces the current links.
Array<string>
Example generated
{ "controlIds": [ "example" ]}