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.
Available in Classic and VPC
Copy and save an object stored in a Ncloud Storage bucket. Objects up to 5 GB can be copied.
Request
This section describes the request format. The method and URI are as follows:
| Method | URI |
|---|---|
| PUT | /{Key} |
Request headers
The following describes the request headers:
For information about the request headers common to all Ncloud Storage APIs, see Ncloud Storage request headers.
| Field | Required | Description |
|---|---|---|
x-amz-copy-source |
Required | Object to be copied
|
Cache-Control |
Optional | Caching behavior |
Content-Disposition |
Optional | Display format of requested data |
Content-Encoding |
Optional | Encoding format of requested data |
Content-Language |
Optional | Request data language |
Content-Type |
Optional | Request data format |
x-amz-metadata-directive |
Optional | Metadata processing method
|
x-amz-storage-class |
Optional | Storage class
|
x-amz-server-side-encryption |
Optional | Server-side encryption method
|
x-amz-server-side-encryption-customer-algorithm |
Optional | User encryption algorithm (AES256) |
x-amz-server-side-encryption-customer-key |
Optional | User-provided encryption key |
x-amz-server-side-encryption-customer-key-MD5 |
Optional | User-provided encryption key's MD5 value |
x-amz-copy-source-server-side-encryption-customer-algorithm |
Optional | User encryption algorithm (AES256) of the source |
x-amz-copy-source-server-side-encryption-customer-key |
Optional | User-provided encryption key of the source |
x-amz-copy-source-server-side-encryption-customer-key-MD5 |
Optional | MD5 value of the source user-provided encryption key |
x-amz-object-lock-mode |
Optional | Object retention mode
|
x-amz-object-lock-retain-until-date |
Optional | Object retention expiration date
|
x-amz-object-lock-legal-hold |
Optional | Legal hold status
|
Request path parameters
You can use the following path parameters with your request:
| Field | Type | Required | Description |
|---|---|---|---|
Key |
String | Required | Object copy name
|
Request example
The request example is as follows:
PUT /object.jpg HTTP/1.1
Host: bucket.kr.ncloudstorage.com
x-amz-copy-source: bucket000/object.csv
Cache-Control: no-cache
Content-Disposition: attachment; filename=object.csv
Content-Language: en
x-amz-metadata-directive: REPLACE
Response
This section describes the response format.
Response headers
For information about the request headers common to all Ncloud Storage APIs, see Ncloud Storage response headers.
Response body
The response body includes the following data:
| Field | Type | Required | Description |
|---|---|---|---|
CopyObjectResult |
Object | - | Object copy result |
CopyObjectResult.LastModified |
String | - | Last modification date and time
|
CopyObjectResult.ETag |
String | - | Unique object identifier (entity tag) |
Response status codes
For information about the response status codes common to all Ncloud Storage APIs, see Common Ncloud Storage response status codes.
Response example
The response example is as follows:
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<CopyObjectResult>
<LastModified>2025-04-28T09:36:57Z</LastModified>
<ETag>"2dd********************4f6181"</ETag>
</CopyObjectResult>