Docs

Create Import

POST /Imports/{target}

POST/Imports/{target}

Builds an import plan from a parsed file and saves it. Nothing is written to the target until Imports_ExecuteImport is called. Each row is planned as Create, Update or Skip with the reason, using the schema keys from Imports_GetSchema. uniqueAttributeKey matches rows to existing records and is only valid for targets that can update; leave it empty to create every row. A file is limited to 2,000 rows. excludedValues skips every row carrying a value, and valueOverrides replaces a raw value before planning. The permission belongs to the import target: EventAdmin on the event for proposalLineItems (event token), OrganizationAdmin for events (organization token).

Path Parameters

FieldTypeRequiredDescription
targetstringRequired

Request Body

FieldTypeRequiredDescription
contextIduuidOptional
fileNamestringOptional
uniqueAttributeKeystringOptional
mappingCreateImportRequestImportColumnMappingRequest[]Optional
rowsCreateImportRequestImportRowRequest[]Optional
excludedValuesCreateImportRequestExcludedValueRequest[]Optional
valueOverridesCreateImportRequestValueOverrideRequest[]Optional

CreateImportRequestImportColumnMappingRequest

FieldTypeDescription
fileColumnstring| null
attributeKeystring| null
attributePathstring| null

CreateImportRequestImportRowRequest

FieldTypeDescription
rowNumberinteger
valuesobject| null

CreateImportRequestExcludedValueRequest

FieldTypeDescription
attributeKeystring| null
rawValuestring| null

CreateImportRequestValueOverrideRequest

FieldTypeDescription
attributeKeystring| null
rawValuestring| null
valuestring| null

Response

FieldTypeDescription
importIduuid
targetstring| null
statusstring| null
fileNamestring| null
rowCountinteger
createCountinteger
updateCountinteger
noChangeCountinteger
skipCountinteger
plannedDatedate-time| null
executedDatedate-time| null
rowsGetImportResponseImportRowResponse[]| null

GetImportResponseImportRowResponse

FieldTypeDescription
rowNumberinteger
plannedOutcomestring| null
matchedRecordIduuid| null
matchedRecordLabelstring| null
skipReasonstring| null
reasonstring| null
resultstring| null
resolvedValuesobject| null