Back to Box Programming Languages Index
Visual Basic 6.0 Box REST API Examples
More Box Examples at example-code.com.
Get Root Folder Info
Gets the folder info for the root folder of a Box.com account. The root folder of a box.com account always has an id = "0".
Get Folder Items
Gets all of the files, folders, or web links contained within a folder.
Creates a new folder. To create a folder in the root folder, use a parent folder id = "0".
Renames a folder. This example renames the folder w/ id = 47885473705 to "Old Documents".
Move a folder to the trash. The recursive parameter must be included in order to delete folders that aren't empty. This example deletes the folder w/ id = 47885473705. An empty 204 response will be returned upon successful deletion. An error is thrown if the folder is not empty and the ‘recursive’ parameter is not included.
Used to create a copy of a folder in another folder. The original version of the folder will not be altered. The a response status code of 202 is expected for success.
Get Folder Collaborations
Returns all of the folder's collaborations. This API does not support paging -- it always returns all of the collaborations. Each collaboration object has details on which user or group has access to the file and with what role.
Uploads a file to a destination (parent) folder. The BOX_FOLDER_ID should be replaced with the id of the folder, or 0 for the root folder.