File → Copy
AI-generatedSummary
Copy a file within OnlyOffice by specifying its ID and the destination folder ID, with options to handle name conflicts during the copy process.
Inputs
- Item ID (required) — ID of the file to copy.
- Destination Folder ID (required) — ID of the folder where the file will be copied to.
- Conflict Resolution — How to handle conflicts when copying: Skip, Overwrite, or Duplicate the file.
Output shape
a single record with JSON data representing the result of the copy operation from OnlyOffice's API
The output contains the API response for the copy operation. If errors occur, the response may include error information. Output structure matches OnlyOffice API's file operations response.
Examples
Example 1: Copy a file with overwrite conflict resolution
Set Item ID to the file's ID, Destination Folder ID to the target folder's ID, and Conflict Resolution to 'Overwrite'.