Preview import file
preview_import_fileDry-run a Soundcheck import file (a UEF 2.0 document) against a destination org you manage. Nothing is stored: the result exists only in this response, no import job is created, and no business record is created or edited. Pass the document from export_workspace, or one you built in the same shape: schema_version "2.0" plus any of the collections members, clients, venues, inventory, acts, songs, setlists, projects, events and leads, linked by ref (search_soundcheck_docs for "Universal Event Format" has each field). A row error comes back per collection, so this call is also the check for a hand-built document. Inspect new vs updated counts and errors before import_file. The result also carries vocabulary: every gig type, gig status and position the document uses, with counts and spelling variants collapsed, each matched to the org's own gig type, position or status or proposed as new (surface event_type, position, or a label in the Source status group). Pass accept_vocabulary here to see the effect, and the same accept_vocabulary to import_file to create them before the records are written. For a raw export from another system, pass export_files instead of document: the result is a mapping report (each file's role, which column fills which field and why the rest were left out, the links between files with orphan counts, row and record counts, duplicates and the date range) to review with the user. Correct a wrong role or column with export_options.roles and export_options.columns and call again, then export_options.mode 'preview' to dry-run the generated documents, then import_file with the same export_files and export_options.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"organization_id": "<organization_id>"
},
"name": "preview_import_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | No | a UEF 2.0 document (schema_version "2.0"), e.g. from export_workspace | |
| export_files | No | instead of document: the files of a whole-workspace export from another system (jobs, crew, positions, venues, clients, contacts, addresses…), linked by codes. Soundcheck works out each file's role, its columns and the links between files, and builds the import documents | |
| export_options | No | options for export_files | |
| organization_id | Yes | destination org id (must be one you manage) | |
| accept_vocabulary | No | which suggestions from the preview vocabulary to apply: true for all, or a list of their key values. Accepted spelling variants are rewritten to one name; on import the new gig types, positions and Source status labels they propose are created first (org admin) and the records use them |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true on success (including confirmation_required prompts) | |
| data | No | the API response { status (HTTP status), data: export files: { mode, committed, report, documents, imports [{ document, ok, status, message, result }], field_catalog }; a UEF document: { committed, documents [{ target_type, preview, result, decision_model }], vocabulary { suggestions, created, reactivated, failures }, event_types { matched, created, failures } } } | |
| error | No | when ok is false |