Add Items
const url = 'https://api.supposing.app/v1/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/items';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '[{"title":"example","text":"example","filename":"example","source_id":"example","metadata":{"additionalProperty":"example"}}]'};
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/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/items \ --header 'Content-Type: application/json' \ --data '[ { "title": "example", "text": "example", "filename": "example", "source_id": "example", "metadata": { "additionalProperty": "example" } } ]'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Fields kept for people (name, email, date…). Never shown to the judge.
object
Example generated
[ { "title": "example", "text": "example", "filename": "example", "source_id": "example", "metadata": { "additionalProperty": "example" } }]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.
Example
{ "source": "web"}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" } ]}