Rename Folder

Rename Folder

To rename a folder in Box you will need to provide our API with a new name for the folder.

curl -X PUT \
     -H 'Authorization: Bearer <ACCESS_TOKEN>' \
     -H 'Content-Type: application/json' \
     -d '{
       "name": "New folder name"
client.folders.update('12345', {name: 'New Name'}, callback);

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.