What the judge would read for one row under a mapping, and the checks for the whole sheet
const url = 'https://api.supposing.app/v1/imports/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/preview';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"sheet":"example","mapping":{"id_field":"example","title_field":"example","text_fields":["example"],"metadata_fields":["example"]},"row":1,"rows":[1]}'};
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/preview \ --header 'Content-Type: application/json' \ --data '{ "sheet": "example", "mapping": { "id_field": "example", "title_field": "example", "text_fields": [ "example" ], "metadata_fields": [ "example" ] }, "row": 1, "rows": [ 1 ] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”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.
Data row, 1 for the first row under the header.
More rows to preview at once (up to 50); returned in items.
Responses
Section titled “Responses”Successful Response
One row under a mapping (plus any others asked for in rows), and the checks for the whole sheet.
object
Exactly the text the judge would read for this row. The title is not in it unless its column is one of the text_fields.
The row’s ID, title and metadata: kept for people, never judged.
object
The rows asked for in rows, in order.
object
Exactly the text the judge would read for this row. The title is not in it unless its column is one of the text_fields.
The row’s ID, title and metadata: kept for people, never judged.
object
object
Data rows it is about, 1 for the first row under the header.
Example
{ "checks": [ { "kind": "duplicate_ids", "tone": "bad" } ]}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" } ]}