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.
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"
]
}'{
"success": true,
"data": {
"governancePolicy": {
"id": "gov-policy-uuid-1",
"name": "Production Gate"
},
"unassignedProjectIds": [
"project-uuid-1"
],
"skippedProjectIds": [],
"count": 1
}
}Headers
CONFIDENT_API_KEYstringRequiredThe organization API key for your Confident AI organization.
Path parameters
policyIdstringRequiredThe unique identifier of the governance policy.
Request body
projectIdslist of stringsRequiredThe ids of the projects to assign or unassign.
Response
successbooleanIndicates if the request was successful
dataobjectShow 4 propertiesHide 4 properties
governancePolicyobjectThe governance policy that was modified.
Show 2 propertiesHide 2 properties
idstringThe unique identifier of the governance policy.
namestringThe name of the governance policy.
unassignedProjectIdslist of stringsIds of the projects removed from this policy.
skippedProjectIdslist of stringsIds that were not on this policy (unknown, foreign, or on another policy). They are skipped and reported here rather than failing the request.
countintegerThe number of projects removed (the length of unassignedProjectIds).