A valid request URL is required to generate request examples{
"_id": "<string>",
"fileName": "<string>",
"firstTenRecords": [
[
"<string>"
]
],
"headers": [
"<string>"
],
"status": "UPLOADING",
"totalRecords": 123
}Start an import from JSON rows
Starts an import from rows sent in the request body instead of a file: the rows are written as a CSV and the import then behaves exactly like a file upload. While the structure has an unfinished import (UPLOADING, UPLOADED, MAPPING or MAPPED) or a migration still being prepared, the request is refused and nothing changes, unless cancelIncomplete=true: then they are cancelled first. The request is always rejected during a bulk change, a RUNNING import or an importing migration; cancelIncomplete does not change that. Poll the status until it is UPLOADED, then submit the column mapping. Limits: 200 columns, 6500 rows, 1000 characters per cell, 1048576 bytes of body.
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
One array of cell values per contact, each with exactly as many cells as there are headers
1 - 6500 elements200Plain, unescaped text; Benchmark stores it HTML-entity escaped.
1000[ ["a@example.com", "Ana", "Acme"], ["b@example.com", "Ben", ""] ]
Response
Import created; the rows are 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