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 Name | Description |
|---|---|
| contentHubUploadUrlRepresentations | This represents an array of parts information which has presigned URL and part number. |
| fileName | The name of the file associated with the upload, including its extension. |
| partSize | Size of each part being uploaded. |
| fileId | The ID of the file in external repository. |
| uploadId | This attribute holds the uploadId if the file being uploaded in multi parts. |
| isMultiPartUpload | Indicates if this request is the candidate for the multi part upload or not. |
| fileUploadUrl | The URL for the file upload in case of single part upload. |
| repositoryId | The ID of the repository to which the file needs to be uploaded. |
| code | The status code that represents the status of the request. |
| message | The message that explains why the request failed or a related message. |