MENU
      PutObject

        PutObject


        Article summary

        Available in Classic and VPC

        Add a new object to the bucket with the request body. No request query parameter or request body is used in the operation.

        Note
        • The size of all objects is limited to 10 TB. If you're using multipart, see UploadPart.

        Requests

        The following describes the request format for the endpoint. The request format is as follows.

        MethodURI
        PUT/{bucket-name}/{object-name}

        Request syntax

        The request syntax is as follows.

        PUT https://{endpoint}/{bucket-name}/{object-name} # path style
        PUT https://{bucket-name}.{endpoint}/{object-name} # virtual host style
        HTTP

        Request headers

        For headers common to all Object Storage APIs, see Object Storage common request headers.

        Request path parameters

        The following describes the parameters.

        FieldTypeRequiredDescription
        bucket-nameStringRequiredName of the bucket to add the object to
        object-nameStringRequiredName of the object to add

        Request example

        The following is a sample request.

        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.'
        HTTP

        Responses

        The following describes the response format.

        Response headers

        For response headers common to all Object Storage APIs, see Object Storage common response headers.

        Response status codes

        For response status codes common to all Object Storage APIs, see Object Storage response status codes.

        Response example

        The following is a sample response.

        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
        HTTP

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.