# Move Resources

Move one or more resources (files/folders) to a new destination from Apex.

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

## Signature

```apex
global static void moveResources(
  List<Types.MoveResourceInput> inputs,
  String library,
  String runAs
)
```

### Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| inputs | List&lt;<a href="#/apex-type-move-resource-input">Types.MoveResourceInput</a>&gt; | required | List of Types.MoveResourceInput objects; one entry per resource to move. |
| library | String | required | Type of library. Example: sharepoint. You can get this value from the Content Library. |
| runAs | String | optional | Email Id of the user on whose behalf the function should run. To run the action as the automation user, supply integrationUser. |

## Return Type

void

## 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');
```
