# Types.MergeDocumentsRequestInput

Input describing the documents to merge, the output file name, and the destination.

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

This custom Apex type represents the input for the Merge Documents (Sync) method. It bundles the source Resource documents to merge, the name of the merged output file, and the destination Resource where the result is saved.

## Fields

### Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| resources | List&lt;<a href="#/apex-type-resource">Resource</a>&gt; | required | A collection of Apex-defined variables pointing to the documents in external storage that will be merged. |
| fileName | String | required | The name of the merged output file, either static or dynamically generated. |
| destination | <a href="#/apex-type-resource">Resource</a> | required | The external storage location metadata (library, driveId, and folder/location Id) where the merged file will be saved. |

## Constructors

```apex
global MergeDocumentsRequestInput(
  List<Resource> resources,
  String fileName,
  Resource destination
)
```
