Skip to main content

Create folder

This API enables you to create a new folder at root or inside another folder. You would need to send an

HTTP POST request to https://dev.vdocipher.com/api/videos/folders.

The POST request body should include parent folder ID, and folder name:

{
"name": "{{folderName}}",
"parent": "{{parentFolderID}}"
}
note

Folder ID for root folder is root.

Sample Code for Creating a folder​

The sample folder name is written as {{folderName}}. Replace this with the desired folder name.

The sample parent folder ID is written as {{parentFolderID}}. Replace this with the desired parent folder ID.

The sample API Secret Key is a1b2c3d4e5.

curl -X POST \
https://dev.vdocipher.com/api/videos/folders \
-H 'Accept: application/json' \
-H 'Authorization: Apisecret a1b2c3d4e5' \
-H 'Content-Type: application/json' \
-d '{
"name": "{{folderName}}",
"parent": "{{parentFolderID}}"
}'

Sample Response from API​

{
"id": "50d30b04273cxxxxxxxxxxxxxxxxxxxx",
"parent": null,
"name": "Sample Folder",
"videosCount": 0,
"foldersCount": 0
}