Introducing Confident Monitor

Unassign Projects from Governance Policy

(v2)

POST

Removes projects from a governance policy, so its controls stop gating them. A project removed this way is left governed by nothing until you enroll it elsewhere, and its recorded verdicts are kept but no longer count towards anything. This is a partial-success operation: an id that is unknown, belongs to another organization, or sits on a different policy is reported in skippedProjectIds rather than failing the request.

POST/v2/organization/governance-policies/{policyId}/unassign
curl -X POST "https://api.confident-ai.com/v2/organization/governance-policies/{policyId}/unassign" \
  -H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "projectIds": [
    "<PROJECT-ID>"
  ]
}'
200
{
  "success": true,
  "data": {
    "governancePolicy": {
      "id": "<GOVERNANCE-POLICY-ID>",
      "name": "EU AI Act readiness"
    },
    "unassignedProjectIds": [
      "<PROJECT-ID>"
    ],
    "skippedProjectIds": [],
    "count": 1
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The organization API key for your Confident AI organization.

Path parameters

  • policyIdstringRequired

    The id of the governance policy.

Request body

  • projectIdslist of stringsRequired

    The ids of the projects to assign to, or unassign from, the governance policy. Send at least one. Ids the operation cannot act on are reported back rather than failing the request, so check the response's skipped list.

Response

Unassign Projects from Governance Policy succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    The outcome of removing projects from a governance policy. This is a partial-success operation: only projects currently on this policy are removed, and the rest come back in skippedProjectIds.

    Show 4 propertiesHide 4 properties
    • governancePolicyobject

      A governance policy, named by id.

      Show 2 propertiesHide 2 properties
      • idstring

        The id of the governance policy.

      • namestring

        The name of the governance policy.

    • unassignedProjectIdslist of strings

      The ids of the projects removed from this policy.

    • skippedProjectIdslist of strings

      The ids that were not on this policy — unknown, belonging to another organization, or enrolled in a different policy. They are left alone and reported here rather than failing the whole request.

    • countinteger

      How many projects were removed, the length of unassignedProjectIds.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI