Skip to content

What the judge is told for a rubric being edited (no judge call)

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

A rubric being edited, to see what the judge would be told.

object
text
Text
string
"" <= 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
Any of:
string
<= 5000 characters

Successful Response

Media typeapplication/json
RubricRendered
object
system
required
System

The judge’s fixed instructions, the same for every run.

string
criteria
required
Criteria

The rubric exactly as it goes into each comparison’s block.

string
weights_total
required
Weights Total

Sum of the criteria weights; the editor shows them as percentages.

number

Example generated

{
"system": "example",
"criteria": "example",
"weights_total": 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"
}
]
}