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
| Field | Type | Required | Description |
|---|
| target | string | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| contextId | uuid | Optional | |
| fileName | string | Optional | |
| uniqueAttributeKey | string | Optional | |
| mapping | CreateImportRequestImportColumnMappingRequest[] | Optional | |
| rows | CreateImportRequestImportRowRequest[] | Optional | |
| excludedValues | CreateImportRequestExcludedValueRequest[] | Optional | |
| valueOverrides | CreateImportRequestValueOverrideRequest[] | Optional | |
CreateImportRequestImportColumnMappingRequest
| Field | Type | Description |
|---|
| fileColumn | string| null | |
| attributeKey | string| null | |
| attributePath | string| null | |
CreateImportRequestImportRowRequest
| Field | Type | Description |
|---|
| rowNumber | integer | |
| values | object| null | |
CreateImportRequestExcludedValueRequest
| Field | Type | Description |
|---|
| attributeKey | string| null | |
| rawValue | string| null | |
CreateImportRequestValueOverrideRequest
| Field | Type | Description |
|---|
| attributeKey | string| null | |
| rawValue | string| null | |
| value | string| null | |
Response
| Field | Type | Description |
|---|
| importId | uuid | |
| target | string| null | |
| status | string| null | |
| fileName | string| null | |
| rowCount | integer | |
| createCount | integer | |
| updateCount | integer | |
| noChangeCount | integer | |
| skipCount | integer | |
| joinsEventCount | integer | |
| companiesAddedCount | integer | |
| plannedDate | date-time| null | |
| executedDate | date-time| null | |
| rows | CreateImportResponseImportRowResponse[]| null | |
| unresolvedValues | CreateImportResponseUnresolvedValueResponse[]| null | |
CreateImportResponseImportRowResponse
| Field | Type | Description |
|---|
| rowNumber | integer | |
| plannedOutcome | string| null | |
| matchedRecordId | uuid| null | |
| matchedRecordLabel | string| null | |
| skipReason | string| null | |
| reason | string| null | |
| result | string| null | |
| resolvedValues | object| null | |
| placementEffect | string| null | |
| placementEffectLabel | string| null | |
CreateImportResponseUnresolvedValueResponse
| Field | Type | Description |
|---|
| key | string| null | |
| rawValue | string| null | |
| rowCount | integer | |
| candidates | CreateImportResponseCandidateResponse[]| null | |
CreateImportResponseCandidateResponse
| Field | Type | Description |
|---|
| value | string| null | |
| label | string| null | |
| description | string| null | |