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.

Complete File Upload

This API sends a request to upload the files.
Resource
/services/data/v65.0/connectcontent-hub-upload/repositories/{repositoryId}/files/complete-upload
  • repositoryId: It refers to the external repository.
Available Version
65.0 and later
HTTP Method
POST
Format
JSON
JSON Example
1{
2  "uploadId": "7aa1a0f4-5e7e-4de5-a880-c4d90237ad1d",
3  "fileId": "sfdc/case/abc.txt", 
4  "fileName": "abc.txt",
5  "contentType": "image/png", 
6  "contextId": "500SG00000oPHkzYAG",
7  "uploadParts": [
8    {
9      "partNumber": "1",
10      "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4"
11    }
12  ]
13}
Properties
Property Name Type Description Required or Optional Available Version
uploadId String A unique identifier for the file being uploaded. Optional 65.0
uploadParts Array An array of objects that holds partNumber and eTag. Optional 65.0
fileId String The ID of the file. Required 65.0
fileName String Name of the file Required 65.0
contextId String This is the context ID from where the file upload has been triggered. For example, it can be an ID of Case, Contact, or Account. Optional 65.0
contentType String This represents the file's content type. Optional 65.0