Reference / Sources and connections

Import a CSV upload batch

import_csv_batchocmgr csv importPOST /v1/connections/{id}/csv-uploadADMIN

Map up to 1,000 rows of an uploaded CSV through a browser-upload CSV source’s columns plan and durably queue them for import. For a hosted workspace, which cannot put a file in the server’s import directory. Send every batch of one file with the same file name and observation time; retry a batch with the same batch ID.

Parameters

dry_runboolean

Validate and map the batch without storing or enqueueing it.

idstring (uuid)REQUIRED

The CSV connection, created with browserUpload: true.

batchIdstringREQUIRED

SHA-256 of the file and the batch position; stable across retries.

observedAtstring (date-time)REQUIRED

When the file was read: the same for every batch of it. Must not be in the future (up to five minutes of clock skew is tolerated).

filestringup to 255 charsREQUIRED

The file's name, without a folder. It selects the connection's columns plan.

headersstring[]up to 512REQUIRED

The header row, in file order.

rowsstring[][]up to 1000REQUIRED

Up to 1000 data rows, each in header order.

CLI flags

--file <path>REQUIRED

The CSV on this machine

--delimiter <char>default ,

Field separator; \t for a TSV

Also in Sources and connections