A valid request URL is required to generate request examples{
"_id": "<string>",
"fileName": "<string>",
"firstTenRecords": [
[
"<string>"
]
],
"headers": [
"<string>"
],
"status": "UPLOADING",
"totalRecords": 123
}Upload a contact file
Uploads a CSV file (up to 100 MB) and starts an import for the given contact structure. While the structure has an unfinished import (UPLOADING, UPLOADED, MAPPING or MAPPED) or a migration still being prepared, the upload is refused and nothing changes, unless cancelIncomplete=true: then the unfinished imports are cancelled before the file is checked, so a rejected upload still cancels them, and the migration once the file has been accepted. The upload is always rejected while a bulk change, a RUNNING import or an importing migration is in progress for the structure; cancelIncomplete does not change that. The response is returned while the file is still being parsed; poll the status until it is UPLOADED, then submit the column mapping.
A valid request URL is required to generate request examples{
"_id": "<string>",
"fileName": "<string>",
"firstTenRecords": [
[
"<string>"
]
],
"headers": [
"<string>"
],
"status": "UPLOADING",
"totalRecords": 123
}Query Parameters
Set to true to cancel the structure's unfinished imports (UPLOADING, UPLOADED, MAPPING or MAPPED) and a migration still being prepared, then continue. Left out or false, the request is refused with ImportInProgressError while any of them exists and nothing is cancelled. A RUNNING import is never cancelled, with or without this.
Body
Response
Import created; the file is being parsed
Current status. An import moves through UPLOADING (file being parsed), UPLOADED (ready for a mapping), MAPPING (mapping being applied), MAPPED (ready to start), RUNNING, then SUCCEEDED or FAILED. ABORTED is set by an explicit abort or when a new import for the same contact structure is started with cancelIncomplete=true.
UPLOADING, UPLOADED, MAPPING, MAPPED, RUNNING, SUCCEEDED, FAILED, ABORTED