v1

latestOpenAPI 3.1.02026-07-1451089.2 KB

Add file(s) to box

This call lets you add one or more files from Google Drive to a single box. Please note that the "Try it" functionality is nonfunctional in this example.

post/files/

Request body

driveFileIdstring

The ID from Google Drive that matches a file you're adding

driveBoxKeystring

The key of the box you'd like to add this file to

Response

200

fileTypestring
fileOwnerstring
creationTimestampinteger
lastUpdatedTimestampinteger
sizestring
mimeTypestring
fileNamestring
mainFileNamestring
driveUrlstring
driveFileIdstring
driveIconUrlstring
driveOwnerIdstring
driveBoxKeystring
isCurrentUserOwnerInDriveboolean
fileKeystring
keystring
boxKeystring
lastSavedTimestampinteger

Example response

[
  {
    "fileType": "DRIVE",
    "fileOwner": "agxzfm1haW",
    "creationTimestamp": 1546470485725,
    "lastUpdatedTimestamp": 1546470485725,
    "size": "0",
    "mimeType": "application/vnd.google-apps.document",
    "fileName": "Bernard Lowe Self-Assessment (Q1'2031)",
    "mainFileName": "Bernard Lowe Self-Assessment (Q1'2031)",
    "driveUrl": "https://drive.google.com/a/file/d/1YMZjIZKR6o43Zj0d7ni",
    "driveFileId": "1YMZjIZKR6o43Zj0d7ni",
    "driveIconUrl": "https://drive-thirdparty.googleusercontent.com/16/type/application/vnd.google-apps.document",
    "driveOwnerId": "494833869",
    "driveBoxKey": "MfcgxwBTs",
    "fileKey": "agxzfm1haWxmb29",
    "key": "yLQsSDE9yZ2FuaXphd",
    "boxKey": "yLQsSDE9yZ2FuaXphd",
    "lastSavedTimestamp": 1546470485847
  }
]