Home > @cerbos/core > Client > disablePolicy
Disable a policy.
Signature:
disablePolicy(id: string, options?: RequestOptions): Promise<boolean>;
Parameter |
Type |
Description |
---|---|---|
id |
string | |
options |
(Optional) |
Returns:
Promise<boolean>
Requires
-
the client to be configured with Options.adminCredentials,
-
the Cerbos policy decision point server to be at least v0.25 and configured with the admin API enabled, and
-
a dynamic storage backend.
const disabled = await cerbos.disablePolicy("resource.document.v1");