This endpoint allows users to upload a file (CSV, XLS, or XLSX) containing data source records for import. The file is validated and processed in the background via queue. The import process supports multiple import types: datasource, task, visit, and route. After upload, the import is queued for processing and can be monitored via the import-monitoring endpoints.
Background Processing:
readingImportDatasourceFile Requirements:
Important Notes:
dataTypeId is requiredhubId is required (depends on commonData setting)Use a valid Bearer token to authenticate.
The file containing data to import. Supported formats: CSV, XLS, XLSX. Maximum file size: 20MB.
Example: datasource_import.xlsx
The identifier for the data type. Required for datasource import type. Use GET /data-types API to get the list of Data Type IDs.
Example: 63db2fb476bc679c540369c4
The identifier for the hub. Required if the data type has commonData set to false (hub-specific data). Use GET /hubs API to get the list of Hub IDs.
Example: 63c63ab1b6972d3150348172