{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/classquill-com/json-schema/classquill-com-result-schema.json",
  "title": "Result",
  "description": "One assessment attempt. Since phase 3 this is an `assessment_attempts` row —\nthe field names are unchanged; see each description for what moved.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/classquill-com-openapi.json#/components/schemas/Result",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "student_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Student Id"
    },
    "status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status",
      "description": "not_started, in_progress, completed (the attempt was handed in), expired (the time limit ran out) or discarded (expired with nothing written — never scored)."
    },
    "grade": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Grade",
      "description": "Percentage score, 0–100. Null until every part is marked."
    },
    "mode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mode",
      "description": "homework for an assigned paper (see homework_assignment_id); for a self-directed sitting the kind: topic_practice, diagnostic, smart_review, saved_review, ai_practice. vce_exam and sac are retired."
    },
    "vce_exam_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vce Exam Id",
      "description": "Always null — the VCE past-paper library was retired."
    },
    "curriculum_level_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Curriculum Level Id"
    },
    "homework_assignment_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Homework Assignment Id",
      "description": "The /v1/homework row this attempt was sat against; null for a self-directed sitting."
    },
    "started_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Started At"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At"
    }
  },
  "type": "object",
  "required": [
    "id"
  ]
}