--- title: "Copy Object" url: https://docs.catalyst.zoho.com/en/sdk/nodejs/v2/cloud-scale/stratus/copy-objects/ description: "This page lists the Node.js SDK method to make a copy of an object within its own bucket." last_updated: 2026-09-08T11:07:33Z service: Cloud Scale type: general related_links: - name: "Stratus Component Help Documentation" url: /en/cloud-scale/help/stratus/introduction - name: "Java SDK" url: /en/sdk/java/v1/cloud-scale/stratus/copy-objects/ - name: "Python SDK" url: /en/sdk/python/v1/cloud-scale/stratus/copy-objects/ - name: "JavaScript SDK Documentation" url: /en/sdk/javascript/v1/cloudscale/stratus/rename-move/ - name: "iOS SDK" url: /en/sdk/ios/v2/cloud-scale/stratus/overview/ - name: "Android SDK" url: /en/sdk/android/v2/cloud-scale/stratus/overview/ - name: "Flutter SDK" url: /en/sdk/flutter/v2/cloud-scale/stratus/overview/ - name: "REST API" url: /en/api/code-reference/cloud-scale/stratus/get-all-buckets/#GetAllBuckets --- # Copy Object > **Note:** This SDK is currently in deprecation. Migrate to [JavaScript SDK](https://docs.catalyst.zoho.com/en/sdk/javascript/v1/cloudscale/stratus/copy-object/) now. Using this SDK method, you can copy an object and paste it within a bucket. The Bucket reference used in the below code snippet is the [component instance](https://docs.catalyst.zoho.com/en/sdk/nodejs/v2/cloud-scale/stratus/create-bucket-instance/). > **Info:** To use this SDK method, you need intialize it with **Admin** scope. You can learn more about this requirement from this [section](https://docs.catalyst.zoho.com/en/sdk/nodejs/v2/overview/#initialize-sdk-with-scopes) The `key` will be the object you are going to copy, and the `destination`, will contain the new name of the copied object. To paste the copied object in a different path, you need to provide the complete path name as `destination`. > **Note:** * You need to provide the complete object name, along with the [**path**](https://docs.catalyst.zoho.com/en/cloud-scale/help/stratus/objects/introduction/#path) for both `key` and `destination` values. * For example, if you have file named "`kitten.png`" in the path `pictures/puppy`, and you need to copy the file to `pictures/kitten` path, then: `source_object` value will be '`pictures/puppy/kitten.png`' `dest_object` value will be '`pictures/kitten/kitten.png`' ```javascript const res = await bucket.copyObject('sam/out/sample.txt', "out/sam/sample.txt"); console.log(res); ``` #### Example Response ```json { "copy_to": "sam/out/sample.txt", "key": "out/sam/sample.txt", "message": "Object copied successfully." } ```