Unassign Projects
POSThttps://api.confident-ai.com/v2/organization/governance-policies/{policyId}/unassign
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 in another policy, and its recorded verdicts are kept but no longer count towards anything. This is a partial-success operation: only projects currently on this policy are removed and come back in unassignedProjectIds, while any id that is unknown, belongs to another organization, or is enrolled in a different policy is left untouched and reported in skippedProjectIds instead of failing the request.
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>"
]
}'{
"success": true,
"data": {
"governancePolicy": {
"id": "<GOVERNANCE-POLICY-ID>",
"name": "EU AI Act readiness"
},
"unassignedProjectIds": [
"<PROJECT-ID>"
],
"skippedProjectIds": [],
"count": 1
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
policyIdstringRequiredThe id of the governance policy.
Request body
projectIdslist of stringsRequiredThe 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 succeeded.
successbooleanIndicates if the request was successful.
dataobjectThe 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
governancePolicyobjectA governance policy, named by id.
Show 2 propertiesHide 2 properties
idstringThe id of the governance policy.
namestringThe name of the governance policy.
unassignedProjectIdslist of stringsThe ids of the projects removed from this policy.
skippedProjectIdslist of stringsThe 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.
countintegerHow many projects were removed, the length of
unassignedProjectIds.
deprecatedbooleanIndicates if this endpoint is deprecated.