Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Upload a New File Version
- Resource
-
1/ui-api/records/content-documents/${contentDocumentId}/content-versions - contentDocumentId—The ID of a previously uploaded file.
- Available Version
- 56.0
- HTTP Method
- POST
- 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 and Upload Files.
- Request Parameters for POST
-
Parameter 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 - Request body for POST
- Example for Uploading a New Version of a File
-
1POST /ui-api/records/content-documents/0692L00000BDVevQAH/content-versions -
1{ 2 "description": "Version 2 of the product image", 3 "title": "product_image" 4} - 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 - Response Body
- Content Document Composite