# Types.MoveResourceInput

Input describing a single file or folder to move to a destination folder.

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

Represents input for moving a resource (file or folder) using Client.moveResources(). One Types.MoveResourceInput is supplied per resource to move.

## Fields

### Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| resourceId | String | required | Id of the file or folder to be moved. |
| resourceType | String | required | One of file or folder. |
| driveId | String | required | Drive Id, applicable for SharePoint or Google Drive. You can get this value from the Content Library. |
| destinationId | String | required | Id of the destination folder. |
| destinationDriveId | String | optional | Drive Id of the destination, for cross-drive moves. Supplied only via the five-argument constructor. |

## Constructors

```apex
global MoveResourceInput(
  String resourceId,
  String resourceType,
  String driveId,
  String destinationId
)
```

```apex
global MoveResourceInput(
  String resourceId,
  String resourceType,
  String driveId,
  String destinationId,
  String destinationDriveId
)
```

## Example

```apex
List<cldfs.Types.MoveResourceInput> inputs = new List<cldfs.Types.MoveResourceInput>{
  new cldfs.Types.MoveResourceInput(
    '67ef8a5bd98d18e317d0891d',
    'file',
    'workspace',
    '68887db5ef0b3ca7534dbbd5'
  )
};

cldfs.Client.moveResources(inputs, 'cloudfiles', 'integrationUser');
```
