Skip to content

Create Evaluation

POST /evaluations

Always 501 today (open question G-4). The body is validated first, on purpose: a client learns the feature is missing rather than that its payload was wrong.

FieldTypeNotes
agent_idstring (uuid)required—
agent_revision_idstring (uuid) | nulloptional—
dataset_namestring | nulloptionalmax length 200
evaluatorsobject[]optional—
StatusDescriptionBody
202Successful ResponseEvaluationRunView
422Validation ErrorHTTPValidationError
501Always, today. No annex defines evaluators, datasets, scoring or how a result relates to a run, so there is nothing to run — see open question G-4 in docs/OPEN-QUESTIONS.md. The tables and the two read endpoints exist; the write path is deliberately absent rather than improvised. Branch on the error code not_implemented; do not retry.—

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/evaluations \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "0190a2f4-0000-7000-8000-000000000000"
}'
FieldTypeNotes
idstring (uuid)required—
agent_idstring (uuid)required—
agent_revision_idstring (uuid) | nulloptional—
dataset_namestring | nulloptional—
evaluatorsobject[]optional—
statusqueued | running | succeeded | failed | cancelledrequired—
summaryobjectoptional—
created_atstring (date-time)required—
finished_atstring (date-time) | nulloptional—