your_private_api_key:
Note the colon in the end./path/to/file.jpg
/folder/to/copy/into/
​
sourceFilePath
then a 404
response is returned.{"message" : "No file found with filePath /path/to/file.jpg","help" : "For support kindly contact us at support@imagekit.io .","reason" : "SOURCE_FILE_MISSING"}
In case of error, you will get an error code along with the error message. On success, you will receive a 204
status code with an empty body.
Here is the example request to understand the API usage.
curl -X POST "https://api.imagekit.io/v1/files/copy" \-H 'Content-Type: application/json' \-u your_private_key: -d '{"sourceFilePath" : "/path/to/file.jpg","destinationPath" : "/folder/to/copy/into/"}'