Actions47
- Account Actions
- Account Origin Actions
- Account URL Endpoint Actions
- Asset Actions
- Custom Metadata Field Actions
- File Actions
- File Version Actions
- Folder Actions
- Metadata Actions
- Purge Cache Actions
- Saved Extension Actions
File → Copy
AI-generatedSummary
Copy a file within ImageKit from a specified source file path to a destination folder path, optionally including all versions of the file.
Inputs
- Source File Path (required) — The full path of the file to copy (e.g. /path/to/file.jpg).
- Destination Path (required) — The folder path where the file should be copied to.
- Include File Versions — Boolean to specify whether to copy all versions of the file (default is false).
Output shape
a single JSON object representing the copied file and its properties
The operation returns details of the copied file as a JSON object. Errors during copy are reported as node errors. The copying is performed via the ImageKit API endpoint '/v1/files/copy' using a POST request.