Box Developer Documentation
 
    Latest version

    Update legal hold policy

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

    This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

    Update legal hold policy.

    Request

    bearer [ACCESS_TOKEN]
    application/json

    Path Parameters

    Request Body

    stringin bodyoptional
    "A custom policy for the sales team"
    500

    A description for the policy.

    stringin bodyoptional
    "Sales Policy"
    254

    The name of the policy.

    stringin bodyoptional
    "Required for GDPR"
    500

    Notes around why the policy was released.

    Response

    application/jsonLegal hold policy

    Returns a new legal hold policy object.

    application/jsonClient error

    Returns an error if a policy with this name already exists.

    application/jsonClient error

    An unexpected client error.

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

    Request Example

    cURL
    curl -i -X PUT "https://api.box.com/2.0/legal_hold_policies/324432" \
         -H "authorization: Bearer <ACCESS_TOKEN>" \
         -H "content-type: application/json" \
         -d '{
           "policy_name": "Policy 4"
         }'

    Response Example

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