Skip to content

Create Dataset

POST
/v1/datasets
curl --request POST \
--url https://api.supposing.app/v1/datasets \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "items": [ { "title": "example", "text": "example", "filename": "example", "source_id": "example", "metadata": { "additionalProperty": "example" } } ], "ephemeral": false }'
Idempotency-Key
Idempotency-Key

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 of:
string
<= 255 characters

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.

Supposing-Source
Supposing-Source

Web, api, cli or mcp: recorded as the source of datasets and runs this request creates. Default api.

Any of:
string

Web, api, cli or mcp: recorded as the source of datasets and runs this request creates. Default api.

Media typeapplication/json
DatasetIn
object
name
required
Name
string
>= 1 characters <= 200 characters
items
Items
Array<object>
ItemIn
object
title
required
Title
string
>= 1 characters <= 300 characters
text
required
Text
string
>= 1 characters
filename
Filename

Where the text came from, if a file.

Any of:
string
<= 500 characters
source_id
Source Id

Your ID for the item, e.g. the application number. Kept in every export; never shown to the judge.

Any of:
string
<= 300 characters
metadata
Metadata

Fields kept for people (name, email, date…). Never shown to the judge.

object
key
additional properties
string
ephemeral
Ephemeral

True for a throwaway, such as an inline one-shot comparison: hidden from lists unless include_ephemeral=true, and deleted after 30 days.

boolean

Successful Response

Media typeapplication/json
DatasetDetail
object
id
required
Id
string format: uuid
name
required
Name
string
created_at
required
Created At
string format: date-time
n_items
required
N Items
integer
source
required
Source

Where it was made: web, api, cli or mcp (the Supposing-Source header).

string
Allowed values: web api cli mcp
ephemeral
required
Ephemeral
boolean
mapping
required

For an imported spreadsheet: which columns the judge reads and which are kept only for people.

Any of:
DatasetMapping
object
id_field
required
Id Field

Your ID for each row (kept as source_id).

Any of:
string
title_field
required
Title Field

The title people see. Defaults to id_field.

Any of:
string
text_fields
required
Text Fields

What the judge reads, in order; with more than one, each is under a ‘## ’ heading.

Array<string>
metadata_fields
required
Metadata Fields

Kept for people, never shown to the judge.

Array<string>
filename
required
Filename
string
sheet
required
Sheet
Any of:
string
items
required
Items
Array<object>
ItemSummary
object
id
required
Id
string format: uuid
title
required
Title

The document’s first heading, else its file name without the extension.

string
filename
required
Filename
Any of:
string
source_id
required
Source Id

Where the item came from: the import’s ID column, else an ID in the file name, else the file name.

Any of:
string
n_words
required
N Words
integer
n_chars
required
N Chars
integer

Example

{
"source": "web"
}

Client error. Branch on code; show message and hint.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}

Server error.

Media typeapplication/json
Error

The body of every non-2xx response.

object
code
required
Code

Stable machine-readable code, e.g. dataset_not_found.

string
message
required
Message
string
hint
Hint

What to do next.

Any of:
string
details
Details

Per-field problems, for invalid_request.

Any of:
Array<object>
ErrorDetail
object
field
required
Field

Dotted path to the field, e.g. ranking.rubric.

string
message
required
Message
string

Example generated

{
"code": "example",
"message": "example",
"hint": "example",
"details": [
{
"field": "example",
"message": "example"
}
]
}