PUT Object - Copy
From Hostway API Documentation
adds an creates a copy of an object that is already stored in HS2 object to a bucket
PUT /ObjectName
Requests
- Syntax
PUT /DestObjectName HTTP/1.1 Host: DestBucketName.hs2.hostway.com Date: date Authorization: signatureValue x-amz-copy-source: /SrcBucketName/SrcObjectName x-amz-acl: acl
- Parameters
This implementation of the operation does not use request parameters.
- Headers
- x-amz-acl: The canned ACL to apply to the object.
- x-amz-copy-source: The name of the source bucket and key name of the source object, separated by a slash (/).
- Elements in body
This implementation of the operation does not use request elements.
Responses
- Headers
This implementation of the operation uses only response headers that are common to most responses
- Elements
- CopyObjectResult: Container for all response elements.
- Etag: Returns the ETag of the new object.
- LastModified: Returns the date the object was last modified.
Examples
- Sample Request
PUT /DestObjectName HTTP/1.1 Host: DestBucketName.hs2.hostway.com Date: date Authorization: AWS signatureValue x-amz-coyp-source: /SrcBucketName/SrcObjectName
- Sample Response
HTTP/1.1 200 OK Date : date Connection : keep-alive Content-Length : length <CopyObjectResult> <LastModified>date</LastModified> <ETag>etag</ETag> </CopyObjectResult>