Skip to content

Evaluate candidate checklist selections against official WAEC/NECO marking criteria.

POST
/api/v1/theory/{exam}/{subject}/{id}/evaluate
curl --request POST \
--url https://api.utmelab.com/api/v1/theory/example/example/example/evaluate \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "achieved_step_ids": [ "example" ], "incurred_penalty_types": [ "example" ], "intermediate_rounding_avoided": true, "selected_method_id": "example", "unit_included": true }'
exam
required
string

Exam code, e.g. WAEC.

subject
required
string

Subject slug, e.g. general-mathematics.

id
required
string

Theory question identifier.

Media typeapplication/json

Payload sent by a candidate or app to evaluate an attempted solution.

object
achieved_step_ids
required
Array<string>
incurred_penalty_types
Array<string> | null
intermediate_rounding_avoided
required
boolean
selected_method_id
required
string
unit_included
required
boolean

Example generated

{
"achieved_step_ids": [
"example"
],
"incurred_penalty_types": [
"example"
],
"intermediate_rounding_avoided": true,
"selected_method_id": "example",
"unit_included": true
}
Media typeapplication/json

Evaluation outcome applying official WAEC/NECO marking criteria.

object
accuracy_marks_awarded
required
integer format: int32
accuracy_marks_possible
required
integer format: int32
awarded_marks
required
integer format: int32
diagnostic_feedback
required
Array<string>
independent_marks_awarded
required
integer format: int32
independent_marks_possible
required
integer format: int32
method_marks_awarded
required
integer format: int32
method_marks_possible
required
integer format: int32
penalties_applied
required
Array<object>
object
deduction
required
integer format: int32
penalty_type
required
string
reason
required
string
percentage
required
number format: double
question_id
required
string
selected_method_id
required
string
total_marks_possible
required
integer format: int32

Example generated

{
"accuracy_marks_awarded": 1,
"accuracy_marks_possible": 1,
"awarded_marks": 1,
"diagnostic_feedback": [
"example"
],
"independent_marks_awarded": 1,
"independent_marks_possible": 1,
"method_marks_awarded": 1,
"method_marks_possible": 1,
"penalties_applied": [
{
"deduction": 1,
"penalty_type": "example",
"reason": "example"
}
],
"percentage": 1,
"question_id": "example",
"selected_method_id": "example",
"total_marks_possible": 1
}

Invalid method or submission data

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

An API key is missing or invalid.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The API key lacks the required scope.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

Question not found

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The caller has exceeded the applicable rate limit.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The API is temporarily unavailable.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}