{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/classquill-com/json-schema/classquill-com-session-complete-schema.json",
  "title": "SessionComplete",
  "description": "PUT /v1/sessions/{id}/complete → tutor_sessions.status + session_ledger.\n\nMarks a scheduled session completed and writes one tutor-owed `session_ledger`\nrow per participant from that participant's per-hour rate snapshot. Idempotent:\ncompleting an already-completed session is a no-op replay, never a double-ledger.\nBoth fields are persisted: `attendance` sets each participant's attendance +\nsettlement_state (and `excused` books 0 owed), mirroring the in-app\nmark_session_attendance; `completed_at` is stored on tutor_sessions.completed_at.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/classquill-com-sessions-api-openapi.yml#/components/schemas/SessionComplete",
  "properties": {
    "attendance": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Attendance",
      "description": "Optional attendance marker: attended, no_show, or excused"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At",
      "description": "Optional ISO 8601 completion time; defaults to now"
    }
  },
  "additionalProperties": false,
  "type": "object"
}