PUT folder request headers

The table below describes the headers you can use in a request to create a folder.

Request header Description Required
Authorization See AWS authentication. Yes
Content-Length

Specifies the size, in bytes, of the data being stored. In a request to create a folder, the value of this header should be 0 (zero).

Even if you specify a value greater than zero for this header, no request body is sent to HCP.

Yes
Content-Type

Specifies the Internet media type of the request body. The only valid value is x-directory.

This header is ignored if the folder name in the request ends with a forward slash (/) or the percent-encoded equivalent (%2F). Otherwise, this header is required.

No
Date See Common request headers. Date or x-amz-date
Host See Common request headers. Yes
Transfer-Encoding

Specifies the encoding transformation for the request body. The only valid value is chunked.

Even if you include this header in the request, no request body is sent to HCP.

No
x-amz-date See Common request headers. x-amz-date or Date

Trademark and LegalDisclaimer

© 2015 Hitachi Data Systems Corporation. All rights reserved.