Manage Applications

    Get policy assignment

    get
    https://api.box.com/2.0
    /legal_hold_policy_assignments/:legal_hold_policy_assignment_id

    Retrieve a legal hold policy assignment.

    Request

    application/json

    Path Parameters

    Response

    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_policy_assignments/753465 \
         -H "Authorization: Bearer <ACCESS_TOKEN>"
    .NET
    BoxLegalHoldPolicyAssignment assignment = await client.LegalHoldPoliciesManager
        .GetAssignmentAsync(assignmentId: "22222");
    Java
    BoxLegalHoldAssignment assignment = new BoxLegalHoldAssignment(api, id);
    BoxLegalHoldAssignment.Info info = assignment.getInfo("assigned_by");
    Python
    assignment_id = '98765'
    assignment = client.legal_hold_policy_assignment(assignment_id).get()
    print('Policy {0} is assigned to {1} {2}'.format(
        assignment.legal_hold_policy.id,
        assignment.assigned_to.type,
        assignment.assigned_to.id,
    ))
    Node
    client.legalHoldPolicies.getAssignment('22222')
    	.then(assignment => {
    		/* assignment -> {
    			type: 'legal_hold_policy_assignment',
    			id: '22222',
    			legal_hold_policy: 
    			{ type: 'legal_hold_policy',
    				id: '11111',
    				policy_name: 'IRS Audit' },
    			assigned_to: { type: 'user', id: '33333' },
    			assigned_by: 
    			{ type: 'user',
    				id: '11111',
    				name: 'Example User',
    				login: 'user@example.com' },
    			assigned_at: '2016-05-18T10:32:19-07:00',
    			deleted_at: null }
    		*/
    	});

    Response Example

    {
      "id": 11446498,
      "type": "legal_hold_policy_assignment",
      "legal_hold_policy": {
        "id": 11446498,
        "type": "legal_hold_policy"
      },
      "assigned_to": {
        "id": 11446498,
        "type": "file",
        "sequence_id": 3,
        "etag": 1,
        "name": "Pictures"
      },
      "assigned_by": {
        "id": 11446498,
        "type": "user",
        "name": "Aaron Levie",
        "login": "ceo@example.com"
      },
      "assigned_at": "2012-12-12T10:53:43-08:00",
      "deleted_at": "2012-12-12T10:53:43-08:00"
    }