Data Integration
- Data Integration
- All Products
mftsaas/api/v1/receivefiles/<connection ID>
Field
| Type
| Required
| Description
|
---|---|---|---|
sourceConnectionType
| String
| Yes
| Connection type.
The supported source connection types are:
|
tgtDirectoryPath
| String
| Yes
| Directory path to where files are transferred.
|
srcDirectoryPath
| String
| -
| Directory path from where files are transferred.
Default is '/'.
|
srcFilePattern
| String
| Yes
| Source file name pattern. Specify a file name pattern to identify which files to send. You can use the regular expression type.
|
processFilesRecursively
| String
| -
| Whether to process files from all sub-folders within the base directory. Default is false.
|
afterFilePickupAction
| String
| -
| Determines what to do with source files after the files transfer. The following options are available:
|
skipDuplicateFiles
| String
| -
| Do not transfer duplicate files. If files with the same name and creation date were transferred, the task does not transfer them again, and the files are marked as duplicate in the job log. If this option is not selected the task transfers all files.
Default is false.
|
whenFileExists
| String
| -
| Determines what to do with a file if a flat file with the same name exists in the target directory. The following options are available:
|
POST <serverUrl>/mftsaas/api/v1/sendfiles/<connection ID> Accept:application/json IDS-SESSION-ID: <icSessionId or INFA-SESSION-ID> { "sourceConnectionType": "Advanced SFTP V2", "tgtDirectoryPath": "C:\\docstoreLocal2", "srcDirectoryPath": "C:\\server\\userdata\\workspace", "srcFilePattern": ".*txt“, "processFilesRecursively": false, "afterFilePickupAction": "KEEP", "skipDuplicateFiles": false, "whenFileExists": "rename", }
{ "projectId": 0, "timeTaken": 0, "queuePriority": 0, "runPriority": 0, "runMode": "UNKNOWN", "submitSourceId": -1, "correlationId": "OWMxOTc2YjktNzI4YS00Mm", "runModeInteractive": false, "runModeBatch": false, "runModeDebug": false, "runModeUnknown": true, "formattedTimeTaken": "0.00", "id": 1000000000384, "runId": 385 }