Initiate File Upload
This API sends a request to initiate a multi-part upload. It returns a response with an
upload ID, which is a unique identifier for the multi-part upload. This identifier is optional for
single part upload.
- Resource
- /services/data/v65.0/connect/content-hub-upload/repositories/files/initiate-upload
- Available Version
- 65.0 and later
- HTTP Method
- POST
- Format
- JSON
- JSON Example
-
1{ 2 "contextId": "500xx000000bncfAAA", 3 "fileName": "abc.json", 4 "contentSize": 1048576000, 5 "contentType": "application/json" 6} - Properties
-
Property Name Type Description Required or Optional Available Version contentType String This represents the file's content type. Required 65.0 contentSize Long The size of the file being uploaded in bytes. 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