import_auto
Uploads a CSV or Excel file and automatically maps columns to a target entity for import. Preview the mapping with dry run before committing.
Instructions
Uploads a file and asks the server to auto-map columns to the target entity. Set dryRun=true to get the proposed mapping back without creating an import — useful for showing the user what will happen and asking 'does this look right?' before committing. Set dryRun=false (default) to auto-map and import in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | Company id from companies_list. | |
| filePath | Yes | Absolute path to a .csv, .xlsx, or .xls file. | |
| entityName | Yes | Entity to import as — must match entities_list output. | |
| dryRun | No | If true, returns proposed mapping without starting an import. Default false. |