Import & Export
Import uploaded files into a Dataset, and export Dataset data to files.
POST /api/datasets/{id}/_import
Import an uploaded file's rows into the Dataset.
Authentication: Required
Request Body:
| Field | Type | Required | Description |
|---|---|---|---|
upload | string | Yes | Upload id from the chunked upload flow (/api/upload/flow) |
uploadOptions | object | No | Parser options for the file (see GET /api/dataset-upload-form) |
progress | string | No | Progress channel id |
An invalid or expired upload id answers 417 Expectation Failed.
Behavior:
- Parses the file with the parser matching its extension and streams the rows into the Dataset's index
- Fields sync from the resulting mapping, as in a refresh
GET /api/dataset-upload-form
Inspect an upload before importing: answers the parser's option form for the
file (delimiter, sheet, header row, …) so a client can build the
uploadOptions payload.
Authentication: Required
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
upload | string | Yes | Upload id |
The response shape depends on the file type's parser.
GET /api/datasets/{id}/exporters
List the exporters available for a Dataset: only those eligible for you and allowed by the tenant's export-type restrictions appear.
Authentication: Required
[
{
"id": "csv",
"label": "CSV",
"icon": "flaticon-document111",
"optsSchema": "(omitted)",
"editor": "csvEdit",
"download": true,
"extension": "csv",
"contentType": "text/csv",
"canApplyFilter": true,
"canUseInJob": true,
"canToggleFormatting": true,
"applyFormatting": true,
"allowEmbedded": true,
"configSchema": "(omitted)"
},
{
"id": "html",
"label": "HTML",
"icon": "flaticon-html",
"editor": "htmlEdit",
"contentType": "text/html",
"extension": "html",
"optsSchema": "(omitted)",
"download": true,
"canApplyFilter": true,
"canUseInJob": true,
"canToggleFormatting": true,
"applyFormatting": true,
"allowEmbedded": true,
"configSchema": "(omitted)"
},
{
"id": "x-ms-iqy",
"optsSchema": "(omitted)",
"editor": "iqyEdit",
"contentType": "text/x-ms-iqy",
"extension": "iqy",
"canApplyFilter": false,
"canUseInJob": false,
"canToggleFormatting": false,
"applyFormatting": true,
"download": true,
"allowEmbedded": true,
"configSchema": "(omitted)"
},
"… 7 more items (10 total) — omitted from docs"
]
optsSchema is the exporter's serialized internal validation schema; clients
can ignore it.
There is also GET /api/datasets/exporters (no Dataset id), which lists
every registered exporter without the per-Dataset eligibility filtering.
GET /api/datasets/{id}/export/{exporter}
Download an export directly: the response streams the file with the exporter's content type.
Authentication: Required
Permission: datasets:export (the exporter may apply its own
authorization; tenant export-type restrictions apply)
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
sort | array | Field names to sort by |
omit / include | array | Drop or force specific columns |
settings | object | Grid settings to shape the export; your saved view applies by default |
q / filter | — | Search and filter criteria |
applyFormatting | boolean | Apply display formats to values (default true) |
options | object | Exporter-specific options |
timezone / locale | string | Formatting context |
snapshots | object | Snapshot view override |
"\"Product\",\"Reorder At\",\"Sku\"\r\n\"Chai\",\"25.00\",\"BEV-001\"\r\n\"Chang\",\"40.00\",\"BEV-002\""
POST /api/datasets/{id}/export/{exporter}
Export into a stored Download instead of streaming back directly: answers
201 with the Download row and a Location header; fetch the file from
/api/downloads/{id}/{filename}.
Authentication: Required
Permission: datasets:export (as above)
Request Body: the same options as the GET form, plus:
| Field | Type | Description |
|---|---|---|
filename | string | Download filename (defaults to <name>.<extension>) |
progress | string | Progress channel id |
{
"filename": "reorder-points.csv"
}
{
"_links": {
"self": {
"href": "https://informer.example.com/api/downloads/00000000-0000-4000-8000-000000000001"
}
},
"type": "download",
"id": "00000000-0000-4000-8000-000000000001",
"filename": "reorder-points.csv",
"size": 524288,
"chunks": 1,
"user": "admin",
"created": 1700000000000
}