Folders

Rename or move a folder

PUT
/v1_1/{cloud_name}/folder_operations/rename

Renames or moves the folder at the specified path, along with all the assets it contains, to a new path.

Authorization

AuthorizationBasic <token>

Basic authentication using Cloudinary API Key and API Secret.

In: header

Path Parameters

cloud_name*string

The cloud name of your product environment.

Request Body

application/json

The source and destination folder paths.

The source and destination folder paths.

path*string

The full path of the folder to rename or move.

to_path*string

The new full path for the folder.

resources_limit?integer

The maximum number of assets that may be moved by the rename. Assets beyond this limit cause the rename to be rejected.

resources_size_limit?integer

The maximum total size, in bytes, of the assets that may be moved by the rename.

max_derived?integer

The maximum number of derived assets that may be moved by the rename.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1_1/my_cloud/folder_operations/rename" \  -H "Content-Type: application/json" \  -d '{    "path": "string",    "to_path": "string"  }'
{  "folder_deleted": true,  "moved": 0,  "rejected": 0,  "failed": 0}