LectureQuiz
Defined in: v1/schemas.ts:579
A quiz attachment as returned from the /courses/:id/lectures/:id/quizzes/:id endpoint.
Remarks
Section titled “Remarks”This object shares the same top-level shape as LectureAttachment with
kind fixed to 'quiz'. The quiz property contains the actual quiz data
including all questions, answers, and grading configuration.
Naming note — the outer object and the nested quiz field share the name
quiz. The outer object is the attachment wrapper; the inner quiz.id is the
quiz’s own unique ID, distinct from the attachment id.
name — documented as required but observed as null in live API responses.
Extends
Section titled “Extends”output<typeofLectureQuizSchema>
Properties
Section titled “Properties”id:
number
Defined in: v1/schemas.ts:556
Inherited from
Section titled “Inherited from”z.infer.id
kind:
"quiz"
Defined in: v1/schemas.ts:558
Inherited from
Section titled “Inherited from”z.infer.kind
name:
string|null
Defined in: v1/schemas.ts:557
Inherited from
Section titled “Inherited from”z.infer.name
position
Section titled “position”position:
number
Defined in: v1/schemas.ts:561
Inherited from
Section titled “Inherited from”z.infer.position
quiz: {
id:number;questions: {answers:string[];correct_answers:string[];graded:boolean;question:string;question_type:"single"|"multiple"; }[];type:"Quiz"; } =QuizDetailSchema
Defined in: v1/schemas.ts:562
id:
number
questions
Section titled “questions”questions: {
answers:string[];correct_answers:string[];graded:boolean;question:string;question_type:"single"|"multiple"; }[]
type:
"Quiz"
Inherited from
Section titled “Inherited from”z.infer.quiz
text:
string|null
Defined in: v1/schemas.ts:560
Inherited from
Section titled “Inherited from”z.infer.text
url:
string|null
Defined in: v1/schemas.ts:559
Inherited from
Section titled “Inherited from”z.infer.url