---
schema_version: "1"
id: f54b59bb54c67ae44bd1c607c501f75efded1805e2ee07d89da391c1d8e6bd27
title: Content Input
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/uiapi/ui_api_requests_content_input.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_requests_content_input.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 5146e5c57fc7dca55c56ee110b6d48a7a695233e83ad81c94f0af8b0caec5419
description: Upload a file or a new file version.
---
# Content Input

Upload a file or a new file version.

To upload a file or a new file version, provide the binary file in a multipart/form-data body part where name="fileData". See [Upload Binary Files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_binary_upload.htm "If a record has a Base64 field, you can upload binary data to the field when you create or update a record.") and [Upload Files](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_features_records_content_document.htm "Upload documents and images or update the file with a new version.").

Example for Uploading a File

POST /ui-api/records/content-documents/content-versions

{
  "description": "A description of the product",
  "title": "product\_image"
}

Example for Uploading a New Version of a File

POST /ui-api/records/content-documents/0692L00000BDVevQAH/content-versions

{
  "description": "Version 2 of the product image",
  "title": "product\_image"
}

Properties

| Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| description | String | A description of the document or image to be uploaded. | Optional | 56.0 |
| title | String | The title of the document or image to be uploaded. | Optional | 56.0 |

#### See Also

- [Upload a New File Version](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_contentdocument.htm "Upload a new document or image version.")
- [Upload a File](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_records_contentversion.htm "Upload a file such as a document or image.")