# Types.CopyResourceInput

Input describing one file or folder to copy to a destination folder.

> Kind: Apex type · Updated: 2026-07-01

Represents input for copying resources (files/folders) using the Client.copyResources() method. Each instance names one source resource and where it should be copied to.

## Fields

### Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | String | required | Id of the source file/folder. |
| destination | String | required | Id of the destination folder. |
| destinationDriveId | String | required | Applicable only for sharepoint and google library. Id of the drive where the destination folder is located. You can get this value from the Content Library. |
| context | String | optional | Optional JSON representation of context to attach to the copy operation. |

## Constructors

```apex
global CopyResourceInput(
  String id,
  String destination,
  String destinationDriveId
)
```

```apex
global CopyResourceInput(
  String id,
  String destination,
  String destinationDriveId,
  String context
)
```
