Get Legal Hold Policy

Guides Legal Holds Get Legal Hold Policy
Edit this page

Get Legal Hold Policy

To get the information for a specific Legal Hold policy that has been created in an enterprise, call the GET /legal_hold_policies/:id API endpoint with the id of the policy.

curl -i -X GET "" \
     -H "Authorization: Bearer <ACCESS_TOKEN>"
BoxLegalHoldPolicy policy = new BoxLegalHoldPolicy(api, id);
BoxLegalHoldPolicy.Info policyInfo = policy.getInfo();
legal_hold_policy = client.legal_hold_policy(policy_id='12345').get()
print('The "{0}" policy is {1}'.format(legal_hold_policy.policy_name, legal_hold_policy.status))
client.legalHolds.get(policyId: "22222", fields: ["name", "created_at"]) { (result: Result<LegalHoldPolicy, BoxSDKError>) in
    guard case let .success(policy) = result else {
        print("Error getting policy information")
    print("Legal hold policy \( was created at \(policy.createdAt)")

Required Scopes

Before using any of the Legal Hold APIs, an application must have the right scopes enabled. See Required Scopes for more details.