---
schema_version: "1"
id: 790fafeae05039a936b3b0c1bdc1f87fbdc037d28f8c5b8af287d8edd1e475f1
title: ConnectApi.CreatedFile
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_ConnectAPI_CreatedFileRepresentation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CreatedFileRepresentation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 631240002baf8499065f0b7bcb36cf9ddd43e73c2f25ed7a6050a77870033458
description: Represents a single file created during a FetchOptimizationFiles operation. Contains the ID of the Content Version record created in the org and an indicator of whether the creation succeeded.
---
# ConnectApi.CreatedFile

Represents a single file created during a FetchOptimizationFiles operation. Contains the ID of the Content Version record created in the org and an indicator of whether the creation succeeded.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| contentVersionId | String | The id of the content version created in the org for this file. | 66.0 |
| success | Boolean | Indicates whether the file was created successfully. Returns true if the Content Version record was created without errors. | 66.0 |