Create a dataset from files (.md, .txt, .html, .pdf, .docx), one item each; reports skipped files and likely duplicates
const url = 'https://api.supposing.app/v1/datasets/upload';const form = new FormData();form.append('name', 'example');form.append('files', 'example');form.append('ephemeral', 'false');form.append('redact', 'false');
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/datasets/upload \ --header 'Content-Type: multipart/form-data' \ --form name=example \ --form files=example \ --form ephemeral=false \ --form redact=falseParameters
Section titled “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
Blind review: remove ‘Applicant: …’ and similar lines, emails and phone numbers from what the judge reads.
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.
Files that were not added, and why.
object
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" } ]}