Skip to content

Sample datasets for a first ranking

GET
/v1/samples
curl --request GET \
--url https://api.supposing.app/v1/samples

Successful Response

Media typeapplication/json
SampleList
object
data
required
Data
Array<object>
Sample

Sample data for a first ranking.

object
id
required
Id
string
name
required
Name
string
description
required
Description
string
rubric
required
Rubric

The rubric its sample run uses.

string
n_items
required
N Items
integer
credit
required
Credit

Where the texts come from, when they are not ours.

Any of:
string
next_cursor
required
Next Cursor
Any of:
string

Example generated

{
"data": [
{
"id": "example",
"name": "example",
"description": "example",
"rubric": "example",
"n_items": 1,
"credit": "example"
}
],
"next_cursor": "example"
}

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"
}
]
}