{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/classquill-com/json-schema/classquill-com-session-create-schema.json",
  "title": "SessionCreate",
  "description": "POST /v1/sessions → tutor_sessions. Creates a SCHEDULED session only.\n\nNo charge is initiated here (see public_writes_batch2.py — real charging stays\nin the existing Stripe PaymentIntent + webhook flow). `organization_id`,\n`creator_id`, `status` ('scheduled'), the per-hour rate snapshot (resolved from\nthe org rate matrix onto the session's participant), and timestamps are ALL\nserver-set. `tutor_id` / `student_id` must be org-scoped. `math_level_id` is the\nsubject identifier (text, e.g. 'methods_34').",
  "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/SessionCreate",
  "properties": {
    "tutor_id": {
      "type": "string",
      "title": "Tutor Id"
    },
    "student_id": {
      "type": "string",
      "title": "Student Id"
    },
    "math_level_id": {
      "type": "string",
      "title": "Math Level Id",
      "description": "Subject identifier, e.g. 'methods_34'"
    },
    "starts_at": {
      "type": "string",
      "title": "Starts At",
      "description": "ISO 8601 timestamp"
    },
    "ends_at": {
      "type": "string",
      "title": "Ends At",
      "description": "ISO 8601 timestamp; must be after starts_at"
    },
    "duration_minutes": {
      "type": "integer",
      "title": "Duration Minutes",
      "description": "One of 30, 45, 60 (tutor_sessions CHECK)"
    },
    "mode": {
      "type": "string",
      "title": "Mode",
      "description": "online | in_person"
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Title",
      "description": "Optional; defaults server-side if omitted"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "tutor_id",
    "student_id",
    "math_level_id",
    "starts_at",
    "ends_at",
    "duration_minutes",
    "mode"
  ]
}