Skip to main content
Pre-check a CSV without committing to an import. The command uploads the file to TalkValue’s import staging area, returns a fileKey you pass to import create, and prints the headers, a sample preview, and TalkValue’s suggested column mapping. Required target fields the file cannot satisfy come back under missingRequired so you can fix the file before running the full import.

Synopsis

Options

Examples

1. Inspect a file before importing

Prints a single record with the fileKey, the row count, headers, the first few rows as preview, and the suggested column mappings.

2. Pipe the mapping into a script

Prints one csvIndex:targetField pair per line, ready to feed into import create --mapping. Capture .data.fileKey from the same response and you have both pieces the create step needs.

3. Halt the pipeline when required fields are missing

jq -e exits non-zero if missingRequired has entries, so the surrounding shell can fail loudly instead of forwarding a broken file to import create.

Response

fileKey is the only field you must keep. It is the handle import create requires. Each entry in columnMappings carries the CSV column’s index and header alongside the server’s suggestedField guess plus a confidence score. Pass csvIndex:suggestedField to import create --mapping, overriding any guess you disagree with.

See also