SDK reference · Node SDK

prov.mandate.policies.reset

prov.mandate.policies.reset in Node SDK. Revert to the built-in default (deactivates all versions; keeps history).

Signature

prov.mandate.policies.reset(opts?: DomainOpts): Promise<{ revertedToDefault: boolean }>

Parameters

optsDomainOpts

Returns

Promise<{ revertedToDefault: boolean }> The default policy, now active.

HTTP operation

DELETE /v1/mandate/policies: Reset to the default policy

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/policies`, {
  method: "DELETE",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.