Launch Week 02 wrapped — explore all five launches

Unassign Projects from Governance Policy

POSThttps://api.confident-ai.com/v1/organization/governance-policies/{policyId}/unassign

Removes one or more projects from a governance policy. This is a partial-success operation. Projects currently on this policy are removed and returned in unassignedProjectIds, while ids that are not on this policy (unknown, foreign, or on another policy) are reported in skippedProjectIds instead of failing the request. count is the number removed.

POST/v1/organization/governance-policies/{policyId}/unassign
curl -X POST "https://api.confident-ai.com/v1/organization/governance-policies/{policyId}/unassign" \
  -H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "projectIds": [
    "project-uuid-1"
  ]
}'
200
{
  "success": true,
  "data": {
    "governancePolicy": {
      "id": "gov-policy-uuid-1",
      "name": "Production Gate"
    },
    "unassignedProjectIds": [
      "project-uuid-1"
    ],
    "skippedProjectIds": [],
    "count": 1
  }
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The organization API key for your Confident AI organization.

Path parameters

  • policyIdstringRequired

    The unique identifier of the governance policy.

Request body

  • projectIdslist of stringsRequired

    The ids of the projects to assign or unassign.

Response

  • successboolean

    Indicates if the request was successful

  • dataobject

    Show 4 propertiesHide 4 properties
    • governancePolicyobject

      The governance policy that was modified.

      Show 2 propertiesHide 2 properties
      • idstring

        The unique identifier of the governance policy.

      • namestring

        The name of the governance policy.

    • unassignedProjectIdslist of strings

      Ids of the projects removed from this policy.

    • skippedProjectIdslist of strings

      Ids that were not on this policy (unknown, foreign, or on another policy). They are skipped and reported here rather than failing the request.

    • countinteger

      The number of projects removed (the length of unassignedProjectIds).

Built byConfident AI