What the judge is told for a rubric being edited (no judge call)
POST
/v1/rubrics/render
const url = 'https://api.supposing.app/v1/rubrics/render';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"text":"","criteria":[{"name":"example","description":"","weight":1}],"instructions":"example"}'};
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/rubrics/render \ --header 'Content-Type: application/json' \ --data '{ "text": "", "criteria": [ { "name": "example", "description": "", "weight": 1 } ], "instructions": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
RubricDraft
A rubric being edited, to see what the judge would be told.
Responses
Section titled “Responses”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
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
details
Details
Per-field problems, for invalid_request.
Any of:
Array<object>
ErrorDetailobject
field
required
Field
Dotted path to the field, e.g. ranking.rubric.
string
message
required
Message
string
null
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
details
Details
Per-field problems, for invalid_request.
Any of:
Array<object>
ErrorDetailobject
field
required
Field
Dotted path to the field, e.g. ranking.rubric.
string
message
required
Message
string
null
Example generated
{ "code": "example", "message": "example", "hint": "example", "details": [ { "field": "example", "message": "example" } ]}