Move folder
post
https://api.imagekit.io
/v1/bulkJobs/moveFolder
Move folder API

Response structure and status code

In case of an error, you will get an error code along with the error message. On success, you will receive a 200 status code with JSON encoded response containing information about jobId. You can use jobId to get the status of this job using bulk job status API.

Examples

Here is the example request to understand the API usage.
cURL
Ruby
1
curl -X POST "https://api.imagekit.io/v1/bulkJobs/moveFolder" \
2
-H 'Content-Type: application/json' \
3
-u your_private_key: -d '
4
{
5
"sourceFolderPath" : "/folder/to/move",
6
"destinationPath" : "/folder/to/move/into/"
7
}
8
'
Copied!
1
imagekitio = ImageKitIo::Client.new("your_private_key", "your_public_key", "your_url_endpoint")
2
imagekitio.move_folder(source_folder_path: '/folder/to/move', destination_path: '/folder/to/move/into/')
Copied!
Last modified 1mo ago