PutObject
- Print
- PDF
PutObject
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
Overview
Uploads the request body as an object by making a PUT request with the specified object path.
The SHA256 hash of the object is the required header.
The maximum size of all objects is limited to 10 TB. (Refer to UploadPart for multipart uploads.)
No parameters or payload is used for the operation.
Request
Syntax
PUT https://{endpoint}/{bucket-name}/{object-name} # path style
PUT https://{bucket-name}.{endpoint}/{object-name} # virtual host style
Examples
Request example
PUT /example-bucket/queen-bee HTTP/1.1
Authorization: {authorization-string}
x-amz-date: 20160825T183001Z
x-amz-content-sha256: UNSIGNED-PAYLOAD
Content-Type: text/plain; charset=utf-8
Host: kr.object.ncloudstorage.com
Content-Length: 533
The 'queen' bee is developed from larvae selected by worker bees and fed a
substance referred to as 'royal jelly'. After a short while the 'queen' is
the mother of nearly every bee in the hive, and the colony will fight
fiercely to protect her.
Response example
HTTP/1.1 200 OK
Date: Thu, 25 Aug 2016 18:30:02 GMT
Accept-Ranges: bytes
x-amz-request-id: 9f0ca49a-ae13-4d2d-925b-117b157cf5c3
ETag: "3ca744fa96cb95e92081708887f63de5"
Content-Length: 0
Was this article helpful?