Launch Week 3: Five days of launches

Delete Organization Policy

(v2)

DELETE

Permanently deletes an organization policy. Unlike a role, a policy in use is not protected: it is detached from every organization role holding it, and members of those roles lose the permissions it granted on their next request. The permissions themselves survive, as do the roles — though a role left with no policies can do nothing. List the organization's roles first to see which carry this policy.

DELETE/v2/organization/policies/{policyId}
curl -X DELETE "https://api.confident-ai.com/v2/organization/policies/{policyId}" \
  -H "CONFIDENT_API_KEY: <ORGANIZATION-API-KEY>"
200
{
  "success": true,
  "data": {
    "id": "<POLICY-ID>"
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The organization API key for your Confident AI organization.

Path parameters

  • policyIdstringRequired

    The id of the policy.

Response

Delete Organization Policy succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    Confirmation that the policy no longer exists.

    Show 1 propertyHide 1 property
    • idstring

      The id of the policy that was deleted.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI