# Types.CreateContentVersionBatchPayload

Input payload for creating content versions when files are imported into Salesforce.

> Kind: Apex type · Updated: 2026-10-05

Represents input for creating content versions when files are imported into Salesforce. Consumed by Client.createContentVersionBatch(). Each entry in files is a CreateContentVersionFlowInput describing one file to version.

## Fields

### Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| files | List&lt;<a href="#/apex-type-create-content-version-flow-input">CreateContentVersionFlowInput</a>&gt; | required | The files to create content versions for. Each CreateContentVersionFlowInput carries library (the related files library such as cloudfiles, google, sharepoint), driveId (the drive where the files are located), and id (the resource Id of each file for which a content version is created). |
| context | String | optional | A JSON string naming the Salesforce record the files are created against, for example {"recordId":"006dL000005H4srQAC"}. This is what the Create Salesforce Files (Batch) Flow action builds from its Salesforce Record Id input. Leave it null to send no context. |

## Constructors

```apex
CreateContentVersionBatchPayload(
  List<CreateContentVersionFlowInput> files,
  String context
)
```
