Content Hub External Upload Request Output

Output representation for Content Hub External Upload Request.

Json Example For Multi-Part Response (Content Size > 100 Mb) 

1{
2  "code":200,
3  "contentHubUploadUrlRepresentations": [
4    {
5      "partNumber": 1,
6      "partUrl": "abc.com"
7    },
8    {
9      "partNumber": 2,
10      "partUrl": "xyz.com"
11    }
12  ],
13  "fileId": "__sfdcroot__/Case/500xx000000bnZwAAI/1",
14  "fileName": "1",
15  "partSize": 1024,
16  "uploadId": "abc",
17  "repositoryId": "0XCxx0000000001",
18  "isMultiPartUpload": true,
19  "fileUploadUrl": null,
20  "message":"Initiate request for External file upload has been successfully completed for fileName: 1"
21}

Json Example For Single Part Response 

1{
2    "code":200,
3    "contentHubUploadUrlRepresentations": [],
4    "fileId": "__sfdcroot__/users/005xx000001X7vV/sf_agent_1744636900341.png",
5    "fileName": "sf_agent.png",
6    "fileUploadUrl": "<upload url>",
7    "isMultiPartUpload": false,
8    "message": "Initiate request for External file upload has been successfully completed for fileName: sf_agent.png",
9    "partSize": 0,
10    "repositoryId": "0XCxx0000000001",
11    "uploadId":null
12}

Properties 

Property NameDescription
contentHubUploadUrlRepresentationsThis represents an array of parts information which has presigned URL and part number.
fileNameThe name of the file associated with the upload, including its extension.
partSizeSize of each part being uploaded.
fileIdThe ID of the file in external repository.
uploadIdThis attribute holds the uploadId if the file being uploaded in multi parts.
isMultiPartUploadIndicates if this request is the candidate for the multi part upload or not.
fileUploadUrlThe URL for the file upload in case of single part upload.
repositoryIdThe ID of the repository to which the file needs to be uploaded.
codeThe status code that represents the status of the request.
messageThe message that explains why the request failed or a related message.