# Update Resources

Update resource (file or folder) properties like name and description from Apex.

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

## Signature

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

### Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| inputs | List&lt;<a href="#/apex-type-update-resource-input">Types.UpdateResourceInput</a>&gt; | required | List of Types.UpdateResourceInput objects, one per resource to update. |
| library | String | required | Type of library. Example — sharepoint. You can get this value from your 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.UpdateResourceInput> inputs = new List<cldfs.Types.UpdateResourceInput>();
Map<String, String> updates = new Map<String, String>();
updates.put('name', 'New Name');

cldfs.Resource resourceToUpdate = new cldfs.Resource(
  '68887db5ef0b3ca7534dbbd5',
  'folder',
  null,
  'cloudfiles',
  'workspace'
);

inputs.add(new cldfs.Types.UpdateResourceInput(resourceToUpdate, updates));
cldfs.Client.updateResources(inputs, 'cloudfiles', 'integrationUser');
```
