Skip to content

LectureQuiz

Defined in: v1/schemas.ts:579

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

z.infer.id


kind: "quiz"

Defined in: v1/schemas.ts:558

z.infer.kind


name: string | null

Defined in: v1/schemas.ts:557

z.infer.name


position: number

Defined in: v1/schemas.ts:561

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: { 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:560

z.infer.text


url: string | null

Defined in: v1/schemas.ts:559

z.infer.url