Retrieves a list of legal hold policies that belong to an enterprise.
This operation is performed by calling function getLegalHoldPolicies.
See the endpoint docs at API Reference.
await client.legalHoldPolicies.getLegalHoldPolicies();
GetLegalHoldPoliciesQueryParams
GetLegalHoldPoliciesHeadersInput
undefined | CancellationToken
This function returns a value of type LegalHoldPolicies.
Returns a list of legal hold policies.
Create a new legal hold policy.
This operation is performed by calling function createLegalHoldPolicy.
See the endpoint docs at API Reference.
await client.legalHoldPolicies.createLegalHoldPolicy({
policyName: legalHoldPolicyName,
description: legalHoldDescription,
isOngoing: false,
filterStartedAt: filterStartedAt,
filterEndedAt: filterEndedAt,
} satisfies CreateLegalHoldPolicyRequestBody);
CreateLegalHoldPolicyRequestBody
CreateLegalHoldPolicyOptionalsInputThis function returns a value of type LegalHoldPolicy.
Returns a new legal hold policy object.
Retrieve a legal hold policy.
This operation is performed by calling function getLegalHoldPolicyById.
See the endpoint docs at API Reference.
await client.legalHoldPolicies.getLegalHoldPolicyById(legalHoldPolicyId);
string
GetLegalHoldPolicyByIdOptionalsInputThis function returns a value of type LegalHoldPolicy.
Returns a legal hold policy object.
Update legal hold policy.
This operation is performed by calling function updateLegalHoldPolicyById.
See the endpoint docs at API Reference.
await client.legalHoldPolicies.updateLegalHoldPolicyById(legalHoldPolicyId, {
requestBody: {
policyName: updatedLegalHoldPolicyName,
} satisfies UpdateLegalHoldPolicyByIdRequestBody,
} satisfies UpdateLegalHoldPolicyByIdOptionalsInput);
string
UpdateLegalHoldPolicyByIdOptionalsInputThis function returns a value of type LegalHoldPolicy.
Returns a new legal hold policy object.
Delete an existing legal hold policy.
This is an asynchronous process. The policy will not be fully deleted yet when the response returns.
This operation is performed by calling function deleteLegalHoldPolicyById.
See the endpoint docs at API Reference.
await client.legalHoldPolicies.deleteLegalHoldPolicyById(legalHoldPolicy.id);
string
DeleteLegalHoldPolicyByIdOptionalsInputThis function returns a value of type undefined.
A blank response is returned if the policy was successfully deleted.