Skip to content

Latest commit

 

History

History
85 lines (41 loc) · 1.19 KB

core.client.enablepolicy.md

File metadata and controls

85 lines (41 loc) · 1.19 KB

Home > @cerbos/core > Client > enablePolicy

Client.enablePolicy() method

Enable a policy.

Signature:

enablePolicy(id: string, options?: RequestOptions): Promise<boolean>;

Parameters

Parameter

Type

Description

id

string

options

RequestOptions

(Optional)

Returns:

Promise<boolean>

Remarks

Requires

Example

const enabled = await cerbos.enablePolicy("resource.document.v1");