Apex
...
Types
Input & Output Types

Types.UploadSalesforceFilePayload

Represents input for uploading Salesforce files to external storage using Copy Salesforce Files function. . Following constructors are supported

Apex

  1. contentDocumentId - Salesforce Id of the content document object to be copied
  2. library - Type of library. Example - sharepoint. You can get this value from Content Library
  3. folderId - Id of the folder in external storage where the file should be copied to. You can get this value from Content Library
  4. driveId - Only applicable for SharePoint or Google Drive libraries. Supply null for for other libraries. You can get this value from Content Library