Create Rubric
const url = 'https://api.supposing.app/v1/rubrics';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","text":"example","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 \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "text": "example", "criteria": [ { "name": "example", "description": "", "weight": 1 } ], "instructions": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”A rubric, as supposing.Rubric: plain text, optionally named weighted criteria and judge instructions.
object
What the judge should prefer, in plain words.
One part of a rubric. The judge is told the weights when they differ.
object
Relative to the other criteria.
Responses
Section titled “Responses”Successful Response
A saved rubric. Runs copy its text when they start, so editing it never changes past runs.
object
What the judge should prefer, in plain words.
One part of a rubric. The judge is told the weights when they differ.
object
Relative to the other criteria.
Example
{ "criteria": [ { "description": "", "weight": 1 } ]}Client error. Branch on code; show message and hint.
The body of every non-2xx response.
object
Stable machine-readable code, e.g. dataset_not_found.
Per-field problems, for invalid_request.
object
Dotted path to the field, e.g. ranking.rubric.
Example generated
{ "code": "example", "message": "example", "hint": "example", "details": [ { "field": "example", "message": "example" } ]}Server error.
The body of every non-2xx response.
object
Stable machine-readable code, e.g. dataset_not_found.
Per-field problems, for invalid_request.
object
Dotted path to the field, e.g. ranking.rubric.
Example generated
{ "code": "example", "message": "example", "hint": "example", "details": [ { "field": "example", "message": "example" } ]}