--- title: "Rename and Move Operations on an Object" url: https://docs.catalyst.zoho.com/en/sdk/python/v1/cloud-scale/stratus/rename-move-object/ description: "This page lists the Python SDK method to perform rename and move operations on an object." 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/rename-move-object/ - 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 --- # Rename and Move Operations on an Object To rename and to move an object, we will be using the same `rename_object()` SDK method. The Bucket reference used in the below code snippet is the [component instance](https://docs.catalyst.zoho.com/en/sdk/python/v1/cloud-scale/stratus/create-bucket-instance/). **Parameters Used**
Parameter Name Data Type Definition
`key` **String** The original name of the object that you need to rename
`destination` **String** The new name that you rename the object with
> **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 `sourceObject` and `destObject` values. * For example, if you have file named "`kitten.png`" in the path `pictures/puppy`, and you need to move or rename the file to `pictures/kitten` path, then: `key` value will be '`pictures/puppy/kitten.png`' `destination` value will be '`pictures/kitten/kitten.png`' ### Rename an Object Using the `rename_object()` SDK method you can rename objects present in a bucket. > **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) > **Note:** * You cannot rename objects in a bucket that has [Versioning](https://docs.catalyst.zoho.com/en/cloud-scale/help/stratus/stratus-config/general-settings/#versioning) enabled. * The following characters including space are not supported when you create a path or an object: double quote, both angular brackets, hashtag, backward slash and pipe symbol. ```python rename_res = bucket.rename_object("sam/out/sample.txt","sam/out/update_sample.txt") print(rename_res) ``` #### Example Response ```json { "current_key": "sam/out/sample.txt", "message": "Rename successful", "rename_to": "sam/out/update_sample.txt" } ``` ### Move an Object Using the `rename_object()` SDK method, we can move the object from one path to another within a bucket. The Bucket reference used in the below code snippet is the [component instance](https://docs.catalyst.zoho.com/en/sdk/python/v1/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) ```python rename_res = bucket.rename_object("sam/out/sample.txt","output/sample.txt") print(rename_res) ``` > **Note:** You cannot perform move operations in a bucket that has [Versioning](https://docs.catalyst.zoho.com/en/cloud-scale/help/stratus/stratus-config/general-settings/#versioning) enabled. #### Example Response ```json { "current_key": "sam/out/sample.txt", "message": "Rename successful", "rename_to": "sutput/sample.txt" } ```