Skip to content

Create Rubric

POST
/v1/rubrics
curl --request POST \
--url https://api.supposing.app/v1/rubrics \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "text": "example", "criteria": [ { "name": "example", "description": "", "weight": 1 } ], "instructions": "example" }'
Media typeapplication/json
RubricIn

A rubric, as supposing.Rubric: plain text, optionally named weighted criteria and judge instructions.

object
name
required
Name
string
>= 1 characters <= 200 characters
text
required
Text

What the judge should prefer, in plain words.

string
>= 1 characters <= 20000 characters
criteria
Criteria
Array<object>
<= 20 items
Criterion

One part of a rubric. The judge is told the weights when they differ.

object
name
required
Name
string
>= 1 characters <= 200 characters
description
Description
string
"" <= 2000 characters
weight
Weight

Relative to the other criteria.

number
default: 1 > 0 <= 100
instructions
Instructions

Extra instructions for the judge, e.g. ‘Ignore spelling.’

Any of:
string
<= 5000 characters

Successful Response

Media typeapplication/json
Rubric

A saved rubric. Runs copy its text when they start, so editing it never changes past runs.

object
name
required
Name
string
>= 1 characters <= 200 characters
text
required
Text

What the judge should prefer, in plain words.

string
>= 1 characters <= 20000 characters
criteria
required
Criteria
Array<object>
<= 20 items
Criterion

One part of a rubric. The judge is told the weights when they differ.

object
name
required
Name
string
>= 1 characters <= 200 characters
description
required
Description
string
"" <= 2000 characters
weight
required
Weight

Relative to the other criteria.

number
default: 1 > 0 <= 100
instructions
required
Instructions

Extra instructions for the judge, e.g. ‘Ignore spelling.’

Any of:
string
<= 5000 characters
id
required
Id
string format: uuid
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
n_runs
required
N Runs
integer

Example

{
"criteria": [
{
"description": "",
"weight": 1
}
]
}

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