Launch Week 02 wrapped — explore all five launches

Update Control

PUThttps://api.confident-ai.com/v2/organization/governance-controls/{controlId}

Updates a governance control's name or description and returns it as stored. Both live on the control itself rather than on a version, so this does not snapshot a new version and does not change what the control checks — append a version for that. An operational control's name and description come from Confident AI's registry and cannot be edited.

PUT/v2/organization/governance-controls/{controlId}
curl -X PUT "https://api.confident-ai.com/v2/organization/governance-controls/{controlId}" \
  -H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Production error rate under 1%",
  "description": "Traces must error on fewer than 1% of production requests over the last day."
}'
200
{
  "success": true,
  "data": {
    "id": "<GOVERNANCE-CONTROL-ID>",
    "name": "Production error rate under 2%",
    "description": "Traces must error on fewer than 2% of production requests over the last day.",
    "type": "RUNTIME",
    "operationalKey": null,
    "recommended": false,
    "configured": true,
    "policiesCount": 2,
    "severity": "CRITICAL",
    "assessmentsCount": 128,
    "createdAt": "2025-01-14T09:30:00.000Z",
    "health": {
      "passRate": 75,
      "projectsAssessed": 4,
      "projectsFailing": 1,
      "projectsTotal": 5,
      "projects": [
        {
          "projectId": "<PROJECT-ID>",
          "projectName": "Checkout Assistant",
          "status": "PASS"
        }
      ]
    },
    "lastAssessedAt": "2025-01-20T02:00:00.000Z"
  },
  "link": "https://app.confident-ai.com/organization/<ORGANIZATION-ID>/governance/controls/<GOVERNANCE-CONTROL-ID>",
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The organization API key for your Confident AI organization.

Path parameters

  • controlIdstringRequired

    The id of the governance control.

Request body

  • namestring

    The name of the control, unique within your organization.

  • descriptionstring | null

    What the control checks and why. Send null to clear it.

Response

Update Control succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    One check a governance policy applies to the projects it governs. The control is a stable identity — its name, its type and its membership of policies — while the rule it evaluates lives on its append-only versions, the newest of which is the definition every new assessment runs against.

    Show 13 propertiesHide 13 properties
    • idstring

      The id of the control, generated by Confident AI.

    • namestring

      The name of the control, unique within your organization.

    • descriptionstring | null

      What the control checks and why, or null when it has none.

    • typeenum

      What a governance control checks: RUNTIME watches production behaviour, PRE_DEPLOYMENT_EVALS and PRE_DEPLOYMENT_RED_TEAMING gate a release, and OPERATIONAL covers process rather than the system itself.

      Show 4 enum valuesHide 4 enum values
      • RUNTIME
      • PRE_DEPLOYMENT_EVALS
      • PRE_DEPLOYMENT_RED_TEAMING
      • OPERATIONAL
    • operationalKeystring | null

      The Confident AI registry entry an OPERATIONAL control was seeded from, which is what it checks. It is null for every other type.

    • recommendedboolean

      Whether Confident AI recommends this control as part of a baseline. It is set on the controls Confident AI seeds and is false for controls you create.

    • configuredboolean

      Whether the control's current version carries enough of a definition to be assessed. A runtime control needs a data model, an aggregation and a numeric threshold; a pre-deployment control needs either a run identifier or officialOnly. An unconfigured control assesses as ERROR, and an OPERATIONAL control is always configured.

    • policiesCountinteger

      How many governance policies hold this control. A control in no policy governs nothing and is never assessed.

    • severityenum | null

      How much a failing control matters, set per version rather than per control. LOW never blocks a deployment gate; CRITICAL, HIGH and MEDIUM block, and so does leaving the severity unset.

      Show 4 enum valuesHide 4 enum values
      • CRITICAL
      • HIGH
      • MEDIUM
      • LOW
    • assessmentsCountinteger

      How many verdicts have been recorded for this control, summed across every version of its definition.

    • createdAtstring

      When the control was created.

    • healthobject

      How a control is doing across the projects it governs, computed from the latest verdict per project rather than from its whole assessment history. A project is governed when its policy holds the control, or when its policy extends a base policy that holds it.

      Show 5 propertiesHide 5 properties
      • passRatenumber | null

      • projectsAssessedinteger

        How many governed projects have produced a counted verdict, meaning a PASS, FAIL or ERROR rather than NO_DATA.

      • projectsFailinginteger

        How many governed projects have a latest verdict of FAIL or ERROR.

      • projectsTotalinteger

        How many projects the control governs in total, including those it has never been assessed against. The difference from projectsAssessed is the projects with no counted verdict yet.

      • projectslist of objects

        The latest verdict for each governed project, one entry per project counted in projectsTotal. It is empty when the control is attached to no policy.

        Show 3 propertiesHide 3 properties
        • projectIdstring

          The id of the governed project.

        • projectNamestring

          The name of the governed project.

        • statusenum | null

          The verdict of assessing one governance control against a project or organization.

          Show 4 enum valuesHide 4 enum values
          • PASS
          • FAIL
          • ERROR
          • NO_DATA
    • lastAssessedAtstring | null

      When this control was most recently assessed against any project, across every version of its definition, or null when it has never been assessed.

  • linkstring

    This is the URL of the resource on the Confident AI platform.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI