A valid request URL is required to generate request examples{
"_id": "<string>",
"fileName": "<string>",
"headers": [
"<string>"
],
"mapping": [
"<string>"
],
"status": "UPLOADING",
"totalRecords": 123
}Map the file's columns to contact fields
Tells the import which column holds the contact key and which hold field values or tags. Allowed while the import is UPLOADED or MAPPED. The mapping is applied in the background: the status moves to MAPPING and then MAPPED, when mappingResult on the import becomes available.
A valid request URL is required to generate request examples{
"_id": "<string>",
"fileName": "<string>",
"headers": [
"<string>"
],
"mapping": [
"<string>"
],
"status": "UPLOADING",
"totalRecords": 123
}Body
One entry per file column, in column order, so the list must have exactly as many entries as the file has columns: key for the contact key (email) column (exactly one), field_<fieldId> for a contact-structure field, tag_<n> for a column whose values become tags (the number is ignored and reassigned in column order), or an empty string for a column to ignore. Any other value is treated as an empty string.
Response
Mapping accepted; being applied
One entry per file column, in column order, so the list must have exactly as many entries as the file has columns: key for the contact key (email) column (exactly one), field_<fieldId> for a contact-structure field, tag_<n> for a column whose values become tags (the number is ignored and reassigned in column order), or an empty string for a column to ignore. Any other value is treated as an empty string.
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