Make the dataset from an import with your column mapping
const url = 'https://api.supposing.app/v1/imports/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/commit';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","sheet":"example","mapping":{"id_field":"example","title_field":"example","text_fields":["example"],"metadata_fields":["example"]},"ephemeral":false}'};
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/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/commit \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "sheet": "example", "mapping": { "id_field": "example", "title_field": "example", "text_fields": [ "example" ], "metadata_fields": [ "example" ] }, "ephemeral": false }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Any unique string, e.g. a UUID. Retrying with the same key returns the first response instead of creating a second one. Keys last 24 hours.
Any unique string, e.g. a UUID. Retrying with the same key returns the first response instead of creating a second one. Keys last 24 hours.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Which columns become what. The judge reads only text_fields; columns in no list are dropped.
object
What the judge reads, in order; with more than one, each is under a ‘##
Kept for people, never shown to the judge.
Responses
Section titled “Responses”Successful Response
object
Where it was made: web, api, cli or mcp (the Supposing-Source header).
For an imported spreadsheet: which columns the judge reads and which are kept only for people.
object
What the judge reads, in order; with more than one, each is under a ‘##
Kept for people, never shown to the judge.
object
The document’s first heading, else its file name without the extension.
object
Data row number, 1 for the first row under the header.
Items whose texts are the same (identical) or nearly so (near). A warning: nothing is merged or dropped.
Example
{ "source": "web", "duplicates": [ { "kind": "identical" } ]}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" } ]}