Use when operating administration of the version of the object.
When you upload the file (which has the same name),
the old object will automatically be saved to the container which will be versioning, with timestamp.

When you delete the latest oblect, the old file wll be regeranerated to the container which will be versioning.

Request URL

Swift API v1.0

PUT /v1/zc_{account}​/​{container}​

Request Parameters

Parameter Value Style Description
X-Auth-Token User Token header
account tenant ID URI
container Container Name URI
X-Versions-Location (Optional) string header
X-Remove-Versions-Location (Optional) string header

Request Json

This operation does not accept a request body.

Normal response code



curl -i -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \
-H "X-Versions-Location: container2" \
HTTP/1.1 202 Accepted
Content-Length: 76
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx45d792522d20468cbceb9-00554c1851
Date: Fri, 08 May 2015 01:58:42 GMT

<html><h1>Accepted</h1><p>The request is accepted for processing.</p></html>