Skip to content

LectureQuiz

Defined in: v1/schemas.ts:643

A quiz attachment as returned from the /courses/:id/lectures/:id/quizzes/:id endpoint.

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.

  • output<typeof LectureQuizSchema>

id: number

Defined in: v1/schemas.ts:620

z.infer.id


kind: "quiz"

Defined in: v1/schemas.ts:622

z.infer.kind


name: string | null

Defined in: v1/schemas.ts:621

z.infer.name


position: number

Defined in: v1/schemas.ts:625

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:626

id: number

questions: { answers: string[]; correct_answers: string[]; graded: boolean; question: string; question_type: "single" | "multiple"; }[]

type: "Quiz"

z.infer.quiz


text: string | null

Defined in: v1/schemas.ts:624

z.infer.text


url: string | null

Defined in: v1/schemas.ts:623

z.infer.url