Reference / Sources and connections

Suggest CSV column mapping

propose_csv_mappingocmgr csv proposePOST /v1/csv/proposeREAD

Preview the same header mapping as the browser Suggested mapping, with optional sample rows. Returns editable columns for create_connection or update_connection config, confidence and the mapping vocabulary. Does not save or import anything.

Parameters

filestringup to 255 charsREQUIRED
headersstring[]up to 512REQUIRED
rowsstring[][]up to 20default []

Optional sample rows in header order. Suggestions use headers, just as the browser does; values are not returned or saved.

CLI flags

--file <path>REQUIRED

Local CSV file; a name only when --headers is supplied

--delimiter <char>default ,

Field separator; \t for a TSV

--headers <json>

JSON array of headers instead of reading the file

--rows <json>default []

JSON array of sample rows

Also in Sources and connections