Manage Applications

    List parts

    get
    https://upload.box.com/api/2.0
    /files/upload_sessions/:upload_session_id/parts

    Return a list of the chunks uploaded to the upload session so far.

    Request

    application/json

    Path Parameters

    stringin pathrequired
    D5E3F7A

    The ID of the upload session.

    Query Parameters

    integer / int64in queryoptional
    10001000-1000

    The maximum number of items to return per page.

    integer / int64in queryoptional
    10000

    The offset of the item at which to begin the response.

    Response

    application/jsonUpload Parts

    Returns a list of parts that have been uploaded.

    You can now try out some of our APIs live, right here in the documentation.
    Log In

    Request Example

    cURL
    curl -X GET https://upload.box.com/api/2.0/files/upload_sessions/F971964745A5CD0C001BBE4E58196BFD/parts \
         -H "Authorization: Bearer <ACCESS_TOKEN>"
    Python
    parts = client.upload_session('11493C07ED3EABB6E59874D3A1EF3581').get_parts()
    for part in parts:
        print('Part {0} at offset {1} has already been uploaded'.format(part['part_id'], part['offset']))
    Node
    // Get the list of parts already uploaded
    client.files.getUploadSessionParts('93D9A837B45F', {limit: 100}, callback);

    Response Example

    {
      "total_count": 5000,
      "limit": 1000,
      "offset": 2000,
      "order": [
        {
          "by": "type",
          "direction": "ASC"
        }
      ],
      "entries": [
        {
          "part_id": "6F2D3486",
          "offset": 16777216,
          "size": 3222784,
          "sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
        }
      ]
    }