Create Folder Endpoint
- 20 Dec 2023
- 1 Minute to read
- Print
- DarkLight
- PDF
Create Folder Endpoint
- Updated on 20 Dec 2023
- 1 Minute to read
- Print
- DarkLight
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
The Create Folder is an endpoint in ProGet's Asset Directory API. It creates a folder at the specified path.
🚀 Quick Example: Creating a folder with Curl
This example creates a folder project-files
, authenticating with the API key abc12345
:
curl -X POST --header "X-ApiKey: abc12345" "https://proget.corp.local/endpoints/internal-files/dir/project-files"
Note that, if any of the parent directories do not exist, they will be created as well; also it is not an error if the folder already exists.
Request Specification
To create a folder simply POST
to the URL with the AssetDirectoryName
and path to the folder.
POST /endpoints/«AssetDirectoryName»/dir/«path_to_folder»
Creating a folder three levels deep requires the asset directory name (e.g. myAssetDirectory
), and the folder/subfolder names (e.g. myFolder
, mySubFolder
, mySubSubFolder
)
POST /endpoints/myAssetDirectory/dir/myFolder/mySubFolder/mySubSubFolder
If myFolder
and/or mySubFolder
do not currently exist, they will also be created.
Response Specification
Response | Details |
---|---|
201 (Success) | the folder is created |
401 (Authentication Required) | indicates a missing, unknown, or unauthorized API Key |
Was this article helpful?