Here's a sample PUT request that creates a directory named budget_proposals in the r&d directory in the finance container. If the r&d directory doesn't already exist, this request also creates that directory.
Request with curl command line
curl -k -i -X PUT http://api.hcp.example.com/swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/finance/r&d/budget_proposals/ -H "X-Auth-Token: dc5efec8f546455eac974e7bbfd0dd87"
Request headers
PUT /swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/finance/r&d/budget_proposals/ HTTP/1.1
X-Auth-Token: dc5efec8f546455eac974e7bbfd0dd87
Response headers
HTTP/1.1 201 Created
Date: Fri, 24 Oct 2014 14:29:06 GMT
Server: HCP V7.1.0.353
ETag: d41d8cd98f00b204e9800998ecf8427e
X-Trans-Id: txfe5244ce53a142288ef97-00541b3b32
Content-Type: application/octet-stream
Content-Length: 0
© 2016 Hitachi Data Systems Corporation. All rights reserved.