Legal hold policy assignments

Assign legal hold policy

Changed on

Assign a legal hold to an item type of: file, file version, folder, user, ownership, or interactions.

post/legal_hold_policy_assignments

Request

  • Base URL
    https://api.box.com/2.0
  • URL
    https://api.box.com/2.0/legal_hold_policy_assignments
  • Auth
    OAuth 2
    Authorization code: https://account.box.com/api/oauth2/authorize
    Token URL: https://api.box.com/oauth2/token

Request body

policy_idstring required

The ID of the policy to assign.

Example request

{
  "policy_id": "123244",
  "assign_to": {
    "type": "folder",
    "id": "6564564"
  }
}

Response

Returns a new legal hold policy assignment.

idstring

The unique identifier for this legal hold assignment.

type'legal_hold_policy_assignment'

The value will always be legal_hold_policy_assignment.

assigned_atstring date-time

When the legal hold policy assignment object was created.

deleted_atstring date-time

When the assignment release request was sent. (Because it can take time for an assignment to fully delete, this isn't quite the same time that the assignment is fully deleted). If null, Assignment was not deleted.

Example response

{
  "id": "11446498",
  "type": "legal_hold_policy_assignment",
  "legal_hold_policy": {
    "id": "11446498",
    "type": "legal_hold_policy"
  },
  "assigned_to": {
    "type": "folder",
    "id": "6564564"
  },
  "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"
}

Changes

    • warning

      added the new unprocessable_entity enum value to the response property for the response status