Skip to main content
POST
Error

Authorizations

X-API-Key
string
header
required

API key authentication

Path Parameters

importId
string<mongo-id>
required

Id of the import, as returned by the upload

Body

application/json
mapping
string[]
required

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

_id
string

Id of the import

fileName
string

Original name of the uploaded file

headers
string[]

Column headers of the uploaded file, in file order

mapping
string[]

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.

status
enum<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.

Available options:
UPLOADING,
UPLOADED,
MAPPING,
MAPPED,
RUNNING,
SUCCEEDED,
FAILED,
ABORTED
totalRecords
number

Number of data rows in the uploaded file