Create a folder

This call creates a new folder.

Every project on the Seven Bridges Platform is represented by a root folder which contains all the files associated with a particular project. You can create nesting folders and subfolders within this root folder by using this API request.

Once you've created a folder, you can move or copy (coming soon) files between folders to populate your newly created folder.

To list the contents of the main project folder, first make the API request to get project details which will return the ID of the main folder (key: root_folder). Next, use the list folder contents call and specify this ID.

πŸ“˜

If you are using Seven Bridges Platform EU, please use the following endpoint: https://eu-api.sbgenomics.com/v2/files

Example request body

{
  "name": "my_new_folder", 
  "parent": "567890abc9b0307bc0414164",
  "type": "FOLDER"
}
{
  "name": "my_folder", 
  "project": "rfranklin/my-project",
  "type": "FOLDER"
}
Language