PostObject
- Print
- PDF
PostObject
- Print
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
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
Name | In | Type | Description |
---|---|---|---|
project_id | path | string | Project ID |
container | path | string | Container (bucket) name |
object | path | string | Object name |
bulk-delete (Optional) | query | string | Deletes multiple objects and containers at a time. |
extract-archive (Optional) | query | string | |
X-Auth-Token (Optional) | header | string | Token |
X-Object-Meta-name (Optional) | header | string | Object metadata. The name part in the header name functions as a key of the metadata. |
X-Delete-At (Optional) | header | integer | The time at which to delete the object (in Unix Epoch timestamp) |
X-Delete-After (Optional) | header | integer | The time after which to delete the object (in seconds) |
Content-Disposition (Optional) | header | string | Redefines browser behaviors. |
Content-Encoding (Optional) | header | string | Encoding type of the object |
Content-Type (Optional) | header | string | MIME type of the object |
Response
Name | In | Type | Description |
---|---|---|---|
Date | header | string | Response time of the request (in UTC) |
Content-Length | header | string | Length of the response result (in bytes) |
Content-Type (Optional) | header | string | MIME type of the response result |
X-Trans-Id | header | string | Transaction ID of the request |
X-Openstack-Request-Id | header | string | Transaction 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?