Submits a completed CAT attempt with all student responses. This finalizes the attempt. AI auto-marking for UNSTRUCTURED questions will run when the attempt is graded.
POST
/api/v1/cats/{id}/finish-attempt/{attempt}
curl \
--request POST 'https://api.echoplain.social/api/v1/cats/123e4567-e89b-12d3-a456-426614174000/finish-attempt/789e0123-e89b-12d3-a456-426614174002' \
--header "Content-Type: application/json" \
--data '{"attempt":{"attemptStartTime":"2025-05-04T09:42:00Z","attemptExpectedEndTime":"2025-05-04T09:42:00Z","attemptActualEndTime":"2025-05-04T09:42:00Z"},"choices":[{"questionId":"string","response":"string","selectedOptions":["string"]}]}'
Request examples
{
"attempt": {
"attemptStartTime": "2025-05-04T09:42:00Z",
"attemptExpectedEndTime": "2025-05-04T09:42:00Z",
"attemptActualEndTime": "2025-05-04T09:42:00Z"
},
"choices": [
{
"questionId": "string",
"response": "string",
"selectedOptions": [
"string"
]
}
]
}
Response examples (200)
{
"result": {
"status": "COMPLETED",
"attemptId": "789e0123-e89b-12d3-a456-426614174002",
"percentage": 83.33,
"totalMarks": 30,
"scoredMarks": 25,
"submittedAt": "2025-10-15T10:45:00.000Z"
},
"message": "CAT attempt submitted successfully"
}