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 response's unresolvedValues lists, per mapped key, each value no option matched, its row count, and the candidates when more than one option matched. The permission belongs to the import target: * at the event for proposalLineItems (event token), Activity.Manage at the event for activities (event token), * at the organization for events (organization token), Crew.Manage at the organization for crew (organization token), Collaborator.Manage at the organization for collaborators (organization token), Crew.Manage at the event for eventCrew (event token), Collaborator.Manage at the event for eventCollaborators (event 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
joinsEventCountinteger
companiesAddedCountinteger
plannedDatedate-time| null
executedDatedate-time| null
rowsCreateImportResponseImportRowResponse[]| null
unresolvedValuesCreateImportResponseUnresolvedValueResponse[]| null

CreateImportResponseImportRowResponse

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

CreateImportResponseUnresolvedValueResponse

FieldTypeDescription
keystring| null
rawValuestring| null
rowCountinteger
candidatesCreateImportResponseCandidateResponse[]| null

CreateImportResponseCandidateResponse

FieldTypeDescription
valuestring| null
labelstring| null
descriptionstring| null