A beta version of the new Box developer documentation site is launching soon! Updated Developer Guides, modern API Reference, and AI-powered search are on the way to help you build with Box faster. Stay tuned for more updates.
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.
await client.Folders.CreateFolderAsync(requestBody: new CreateFolderRequestBody(name: newFolderName, parent: new CreateFolderRequestBodyParentField(id: "0")));
await client.Folders.CreateFolderAsync(requestBody: new CreateFolderRequestBody(name: newFolderName, parent: new CreateFolderRequestBodyParentField(id: "0")));
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.