Create Directory

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Create new directory at the specified destination.

Notes: You can also Attach Properties as part of creating directories.Using Properties in Deployment and Resolution

Security: Requires a user with 'deploy' permissions (can be anonymous)

Usage: PUT /repo-key/path/to/directory/

Produces: application/json (application/vnd.org.jfrog.artifactory.storage.ItemCreated+json)

Sample Output:

curl <username> -XPUT https://hts1.jfrog.io/artifactory/example/testfolder 
{ "repo" : "example", 
"path" : "/testfolder", 
"created" : "2024-11-25T21:56:39.689Z", 
"createdBy" : "rasul", 
"downloadUri" : "https://hts1.jfrog.io/artifactory/example/testfolder", 
"mimeType" : "application/octet-stream", 
"size" : "0", 
"checksums" : { "sha1" : "da39a3ee5e6b4b0d3255bfef95601890afd80709", 
"md5" : "d41d8cd98f00b204e9800998ecf8427e", 
"sha256" : "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" }, 
"originalChecksums" : { "sha256" : "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" }, 
"uri" : "https://hts1.jfrog.io/artifactory/example/testfolder" 
}%