Revert to the default policies for the calling user
Revert to the default policies for the calling user
policy_bundle.reset(PolicyBundleResetParams**kwargs)
DELETE/policy/bundle
Archives the PolicySet for the calling user (if any),
causing subsequent GET /policy/bundle requests to fall back to the
default user policies. Idempotent: returns 204 No Content even when no
user-scope binding exists.
Parameters
x_client_request_id: Optional[str]
formatuuid
Revert to the default policies for the calling user
import os
from keycardai_api import KeycardAPI
client = KeycardAPI(
api_key=os.environ.get("KEYCARD_API_API_KEY"), # This is the default and can be omitted
)
client.policy_bundle.reset()