Here's a sample COPY request that copies an object named campaigns/GoGetEm.xls from the sales-mktg container to the finance container, where the target object that results from the copy operation is named mktg/campaign_GoGetEm_expenses.xls With this copy, the metadata property/value pair business/campaign is added to the object.
Request with curl command line
curl -k -i -X COPY http://api.hcp.example.com/swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/sales-mktg/campaigns/GoGetEm.xls -H "X-Auth-Token: dc5efec8f546455eac974e7bbfd0dd87" -H "Destination: finance/mktg/campaign_GoGetEm_expenses.xls" -H "X-Object-Meta-business: campaign"
Request headers
COPY /swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/sales-mktg/campaign/GoGetEm.xls HTTP/1.1
X-Auth-Token: dc5efec8f546455eac974e7bbfd0dd87
x-Object-business: campaign
Destination: /finance/mktg/campaign_GoGetEm_expenses.xls
Response headers
HTTP/1.1 201 Created
Date: Mon, 03 Nov 2014 14:06:29 GMT
Server: HCP V7.1.0.353
X-Trans-Id: 1c66338b-d2e8-49ab-aa46-15f41677a919
ETag: d41d8cd98f00b204e9800998ecf8427e
Content-Type: application/octet-stream
Content-Length: 0
X-Copied_From-Last-Modified:Mon, 03 Nov 2014 14:06:29 GMT
X-Copied-From: /finance/mktg/campaign_GoGetEm_expenses.xls
Last-Modified: Mon, 03 Nov 2014 14:06:29 GMT
© 2015 Hitachi Data Systems Corporation. All rights reserved.