Assign legal hold policy

post
https://api.box.com/2.0
/legal_hold_policy_assignments

Assign a legal hold to a file, file version, folder, or user.

Request

application/json

Request Body

objectin body

The item to assign the policy to

stringnulloptional
6564564

The ID of item to assign the policy to

stringnulloptional
folder

The type of item to assign the policy to

Value is one of file,file_version,folder,user

stringin bodyrequired
123244

The ID of the policy to assign.

Response

Returns a new legal hold policy assignment.

application/jsonClient error

An unexpected client error.

post
Assign legal hold policy
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
curl -X POST https://api.box.com/2.0/legal_hold_policy_assignments \
     -H 'Authorization: Bearer <ACCESS_TOKEN>'
     -H 'Content-Type: application/json" '
     -d '{
       "policy_id": "123244",
       "assign_to": {
         "type": "folder",
         "id": "6564564"
       }
     }'