Assign Projects to Governance Policy

Assigns one or more projects to a governance policy. A project already on a different policy is moved to this one. This is a partial-success operation. Projects that exist are assigned and returned in `assignedProjectIds`, while ids that do not exist in the organization are reported in `notFoundProjectIds` instead of failing the request. `count` is the number now assigned (re-assigning an already-enrolled project still counts it).

Path parameters

policyIdstringRequired
The unique identifier of the governance policy.

Headers

CONFIDENT_API_KEYstringRequired
The organization API key for your Confident AI organization.

Request

This endpoint expects an object.
projectIdslist of stringsRequired
The ids of the projects to assign or unassign.

Response

successboolean
Indicates if the request was successful
dataobject