Box Developer Documentation

Add Item to Collection

Guides Collections Add Item to Collection
Edit this page

Add Item to Collection

To add an item to a collection, call the PUT endpoint for that specific type of item and pass along a list of collection IDs.

The only collection that is available via the API is the "Favorites" collection. The ID of this collection is different for every user.

Add file to collection

To add a file to a collection, call the PUT /files/:id API and pass along a list of collection IDs.

Add folder to collection

To add a folder to a collection, call the PUT /folders/:id API and pass along a list of collection IDs.

To add a web link to a collection, call the PUT /web_links/:id API and pass along a list of collection IDs.