Box Developer Documentation
 

    Create Folder

    Create Folder

    To create a folder in Box you will need to provide our API with a name for the new folder, as well as the id of the parent folder that you would like to create the new folder within.

    cURL
    curl -i -X POST "https://api.box.com/2.0/folders" \
         -H "authorization: Bearer <ACCESS_TOKEN>" \
         -H "content-type: application/json" \
         -d '{
           "name": "New Folder",
           "parent": {
             "id": "0"
           }
         }'

    Name restrictions

    There are some restrictions to the folder 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.