Upload Objects

Description

Request URL

Swift API v1.0

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

Request Parameters

Parameter Value Style Description
X-Auth-Token User Token header
account tenant ID URI
container Container Name URI
object Object Name URI

Request Json

This operation does not accept a request body.

Normal response code

201

Example

curl -i -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \
https://object-storage.tyo1.cloud.z.com/v1/nc_cc54f7476b8e444bad238a943a94ccdf/container/ \
-T file1
HTTP/1.1 100 Continue

HTTP/1.1 201 Created
Last-Modified: Thu, 07 May 2015 08:31:29 GMT
Content-Length: 0
Etag: 1276481102f218c981e0324180bafd9f
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx345b2e3321084fbfb9470-00554b22e0
Date: Thu, 07 May 2015 08:31:28 GMT