Get legal hold 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.

application/jsonClient error

An unexpected client error.

get
Get legal hold policy assignment
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 }
		*/
	});
iOS
client.legalHolds.getPolicyAssignment(assignmentId: "22222", fields: ["assigned_at"]) { (result: Result<LegalHoldPolicyAssignment, BoxSDKError>) in
    guard case let .success(assignment) = result else {
        print("Error getting policy assignment info")
        return
    }
    print("Legal hold policy assignment \(assignmnent.id) was created at \(assignment.assignedAt)")
}