Upload a CSV, TSV or XLSX (one row per item) to preview it and get a guessed column mapping
const url = 'https://api.supposing.app/v1/imports';const form = new FormData();form.append('file', 'example');form.append('sheet', 'example');
const options = {method: 'POST'};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.supposing.app/v1/imports \ --header 'Content-Type: multipart/form-data' \ --form file=example \ --form sheet=exampleRequest Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
A parsed spreadsheet waiting for its mapping. Commit it to make the dataset.
object
Sheet names for a workbook; empty for CSV.
object
Share of rows with a value, 0 to 1.
Every row has a different, non-empty value.
How many different non-empty values.
Looks personal or identifying (name, email, date…): hide it from the judge.
The first rows, cells cut to 300 characters.
Our guess: personal and date columns go to metadata.
object
What the judge reads, in order; with more than one, each is under a ‘##
Kept for people, never shown to the judge.
Example
{ "format": "csv"}Client error. Branch on code; show message and hint.
The body of every non-2xx response.
object
Stable machine-readable code, e.g. dataset_not_found.
Per-field problems, for invalid_request.
object
Dotted path to the field, e.g. ranking.rubric.
Example generated
{ "code": "example", "message": "example", "hint": "example", "details": [ { "field": "example", "message": "example" } ]}Server error.
The body of every non-2xx response.
object
Stable machine-readable code, e.g. dataset_not_found.
Per-field problems, for invalid_request.
object
Dotted path to the field, e.g. ranking.rubric.
Example generated
{ "code": "example", "message": "example", "hint": "example", "details": [ { "field": "example", "message": "example" } ]}