Update Folder

Update Folder

To update a folder in Box you will need to call the following API.

curl -i -X PUT "https://api.box.com/2.0/folders/4353455" \
     -H "Authorization: Bearer <ACCESS_TOKEN>" \
     -H "Content-Type: application/json" \
     -d '{
       "name": "New folder name"
BoxFolder folder = new BoxFolder(api, "id");
BoxFolder.Info info = folder.new Info();
info.setName("New Name");
updated_folder = client.folder(folder_id='22222').update_info({
    'name': '[ARCHIVED] Planning documents',
    'description': 'Old planning documents',
print('Folder updated!')

Name restrictions

There are some restrictions to the file name. Names containing non-printable ASCII characters, forward and backward slashes (/, \), as well as names with trailing spaces are prohibited.

Additionally, the names . and .. are reserved names and therefore also prohibited.


Timeout for this operation is 60 seconds. The operation will complete after a HTTP 503 has been returned.