PostObject
    • PDF

    PostObject

    • PDF

    Article Summary

    The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.

    Overview

    Sets and updates metadata of an object.

    Syntax

    POST /v1/AUTH_{project_id}/{container}/{object}
    

    Request

    NameInTypeDescription
    project_idpathstringProject ID
    containerpathstringContainer (bucket) name
    objectpathstringObject name
    bulk-delete (Optional)querystringDeletes multiple objects and containers at a time.
    extract-archive (Optional)querystring
    X-Auth-Token (Optional)headerstringToken
    X-Object-Meta-name (Optional)headerstringObject metadata. The name part in the header name functions as a key of the metadata.
    X-Delete-At (Optional)headerintegerThe time at which to delete the object (in Unix Epoch timestamp)
    X-Delete-After (Optional)headerintegerThe time after which to delete the object (in seconds)
    Content-Disposition (Optional)headerstringRedefines browser behaviors.
    Content-Encoding (Optional)headerstringEncoding type of the object
    Content-Type (Optional)headerstringMIME type of the object

    Response

    NameInTypeDescription
    DateheaderstringResponse time of the request (in UTC)
    Content-LengthheaderstringLength of the response result (in bytes)
    Content-Type (Optional)headerstringMIME type of the response result
    X-Trans-IdheaderstringTransaction ID of the request
    X-Openstack-Request-IdheaderstringTransaction ID of the request (same as X-Trans-Id)

    Examples

    Request example

    curl -i -X POST -H "X-Auth-Token: $token" -H "X-Object-Meta-Subject: test-object" https://kr.archive.ncloudstorage.com/v1/AUTH_{project_id}/{container}/{object}
    

    Response example

    HTTP/1.1 202 Accepted
    Content-Length: 76
    Content-Type: text/html; charset=UTF-8
    X-Trans-Id: tx31cb8b345bac4fe7b33ab-005b9f7388
    X-Openstack-Request-Id: tx31cb8b345bac4fe7b33ab-005b9f7388
    Date: Mon, 17 Sep 2018 09:27:37 GMT
    

    The API request creates and updates metadata of the object.
    It returns OK (200) status code if successful.


    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.