Manage Applications

    Get legal hold policy

    get
    https://api.box.com/2.0
    /legal_hold_policies/:legal_hold_policy_id

    Retrieve a legal hold policy.

    Request

    application/json

    Path Parameters

    Response

    application/jsonLegal Hold Policy

    Returns a legal hold policy object.

    You can now try out some of our APIs live, right here in the documentation.
    Log In

    Request Example

    cURL
    curl -X GET https://api.box.com/2.0/legal_hold_policies/324432 \
         -H "Authorization: Bearer <ACCESS_TOKEN>"
    .NET
    BoxLegalHoldPolicy policy = await client.LegalHoldPoliciesManager.GetLegalHoldPolicyAsync("11111");
    Java
    BoxLegalHoldPolicy policy = new BoxLegalHoldPolicy(api, id);
    BoxLegalHoldPolicy.Info policyInfo = policy.getInfo();
    Python
    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))
    Node
    client.legalHoldPolicies.get('11111')
    	.then(policy => {
    		/* policy -> {
    			type: 'legal_hold_policy',
    			id: '11111',
    			policy_name: 'IRS Audit',
    			description: '',
    			status: 'active',
    			assignment_counts: { user: 1, folder: 0, file: 0, file_version: 0 },
    			created_by: 
    			{ type: 'user',
    				id: '22222',
    				name: 'Example User',
    				login: 'user@example.com' },
    			created_at: '2016-05-18T10:28:45-07:00',
    			modified_at: '2016-05-18T11:25:59-07:00',
    			deleted_at: null,
    			filter_started_at: '2016-05-17T01:00:00-07:00',
    			filter_ended_at: '2016-05-21T01:00:00-07:00' }
    		*/
    	});

    Response Example

    {
      "id": 11446498,
      "type": "legal_hold_policy",
      "policy_name": "Policy 4",
      "description": "Postman created policy",
      "status": "active",
      "assignment_counts": {
        "user": 1,
        "folder": 2,
        "file": 3,
        "file_version": 4
      },
      "created_by": {
        "id": 11446498,
        "type": "user",
        "name": "Aaron Levie",
        "login": "ceo@example.com"
      },
      "created_at": "2012-12-12T10:53:43-08:00",
      "modified_at": "2012-12-12T10:53:43-08:00",
      "deleted_at": "2012-12-12T10:53:43-08:00",
      "filter_started_at": "2012-12-12T10:53:43-08:00",
      "filter_ended_at": "2012-12-12T10:53:43-08:00",
      "release_notes": "Example"
    }