Update Governance Policy Controls
(v2)PUT
Replaces the set of controls the governance policy attaches directly, changing what it gates its projects on from the next assessment onward. This is how a control comes to govern anything: a newly created control is attached to no policy, so it gates nothing until a policy attaches it here. Every id must name a control in your organization, or the whole request is rejected.
curl -X PUT "https://api.confident-ai.com/v2/organization/governance-policies/{policyId}/controls" \
-H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>" \
-H "Content-Type: application/json" \
-d '{
"controlIds": [
"<GOVERNANCE-CONTROL-ID>"
]
}'{
"success": true,
"data": {
"controls": [
{
"id": "<GOVERNANCE-CONTROL-ID>",
"name": "Groundedness above 0.9",
"description": "Answers must stay grounded in the retrieved context.",
"type": "RUNTIME",
"recommended": true,
"configured": true,
"currentVersion": {
"id": "<GOVERNANCE-CONTROL-VERSION-ID>",
"version": "00.00.02"
},
"latestAssessments": [
{
"id": "<GOVERNANCE-ASSESSMENT-ID>",
"governanceControlId": "<GOVERNANCE-CONTROL-ID>",
"governanceControlVersion": {
"id": "<GOVERNANCE-CONTROL-VERSION-ID>",
"version": "00.00.02"
},
"projectId": "<PROJECT-ID>",
"status": "PASS",
"evidence": {
"measured": 0.94,
"threshold": 0.9
},
"error": null,
"createdAt": "2025-01-15T02:00:00.000Z"
}
],
"baseGovernancePolicy": {
"id": "<GOVERNANCE-POLICY-ID>",
"name": "EU AI Act readiness"
},
"alsoInBaseGovernancePolicy": {
"id": "<GOVERNANCE-POLICY-ID>",
"name": "EU AI Act readiness"
}
}
],
"totalGovernancePolicyControls": 6
},
"link": "https://app.confident-ai.com/organization/<ORGANIZATION-ID>/governance/policies/<GOVERNANCE-POLICY-ID>",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
policyIdstringRequiredThe id of the governance policy.
Request body
controlIdslist of stringsRequiredThe complete set of controls the policy should attach directly. Any control it currently attaches and you leave out is detached, and an empty array detaches all of them. An inherited control cannot appear here — it is attached on the base policy that owns it.
Response
Update Governance Policy Controls succeeded.
successbooleanIndicates if the request was successful.
dataobjectThe controls a governance policy applies, as they stand after the call.
Show 2 propertiesHide 2 properties
controlslist of objectsEvery control that applies to this policy's projects, including the ones inherited from the policies it extends.
Show 10 propertiesHide 10 properties
idstringThe id of the governance control.
namestringThe name of the governance control.
descriptionstring | nullWhat the control checks, or
nullwhen it has no description.typeenumWhat a governance control checks:
RUNTIMEwatches production behaviour,PRE_DEPLOYMENT_EVALSandPRE_DEPLOYMENT_RED_TEAMINGgate a release, andOPERATIONALcovers process rather than the system itself.Show 4 enum valuesHide 4 enum values
RUNTIMEPRE_DEPLOYMENT_EVALSPRE_DEPLOYMENT_RED_TEAMINGOPERATIONAL
recommendedbooleanWhether Confident AI recommends this control for the kind of system the policy governs.
configuredbooleanWhether the control's current version carries the settings its type needs to run. A control that is not configured is never assessed, so it produces no verdicts.
currentVersionobject | nullThe version of a control's definition an assessment was computed against.
Show 2 propertiesHide 2 properties
idstringThe id of the control version, generated by Confident AI.
versionstringThe human-readable label of the control version.
latestAssessmentslist of objectsThis control's newest verdict in each project enrolled in the policy. A project with no verdict for the control is absent rather than listed with a
nullstatus.Show 8 propertiesHide 8 properties
idstringThe id of the assessment, generated by Confident AI.
governanceControlIdstringThe id of the governance control that was assessed.
governanceControlVersionobjectThe version of a control's definition an assessment was computed against.
Show 2 propertiesHide 2 properties
idstringThe id of the control version, generated by Confident AI.
versionstringThe human-readable label of the control version.
projectIdstringThe id of the project the control was assessed against.
statusenumThe verdict of assessing one governance control against a project or organization.
Show 4 enum valuesHide 4 enum values
PASSFAILERRORNO_DATA
evidenceobject | nullerrorstring | nullWhy the check itself failed to run, or
nullwhen it ran. This is set on anERRORverdict and says nothing about whether the project complies.createdAtstringWhen the assessment was recorded.
baseGovernancePolicyobjectA governance policy, named by id.
Show 2 propertiesHide 2 properties
idstringThe id of the governance policy.
namestringThe name of the governance policy.
alsoInBaseGovernancePolicyobjectA governance policy, named by id.
Show 2 propertiesHide 2 properties
idstringThe id of the governance policy.
namestringThe name of the governance policy.
totalGovernancePolicyControlsintegerHow many controls apply to this policy, the length of
controls. This response is not paginated.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.