Box Developer Documentation
 
    Latest version

    List storage policy assignments

    get
    https://api.box.com/2.0
    /storage_policy_assignments

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

    Fetches all the storage policy assignment for an enterprise or user.

    Request

    bearer [ACCESS_TOKEN]
    application/json

    Query Parameters

    stringin queryoptional
    JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii

    Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination.

    This requires usemarker to be set to true.

    stringin queryrequired
    984322

    The ID of the user or enterprise to return assignments for

    stringin queryrequired
    user

    The target type to return assignments for

    Value is one of user,enterprise

    Response

    Returns a collection of storage policies for the enterprise or user.

    application/jsonClient error

    An unexpected client error.

    get
    List storage policy assignments
    You can now try out some of our APIs live, right here in the documentation.
    Log in

    Request Example

    cURL
    curl -i -X GET "https://api.box.com/2.0/storage_policy_assignments?resolved_for_type=userresolved_for_id=984322" \
         -H "authorization: Bearer <ACCESS_TOKEN>"

    Response Example

    {
      "entries": [
        {
          "assigned_to": {
            "id": "11446498",
            "type": "file"
          },
          "id": "ZW50ZXJwcmlzZV8xMjM0NTY3ODkw",
          "storage_policy": {
            "id": "11446498",
            "type": "storage_policy"
          },
          "type": "storage_policy_assignment"
        }
      ],
      "limit": 1000,
      "next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
      "prev_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVih"
    }