Help › Reference: every action › Actions that change something
Quiz assignments
quiz.create: Quiz assignment. On the pages: Classwork ▸ Create. Parameters: {class: id, title: string, instructions?: string, due?: "YYYY-MM-DD[THH:MM]"|ms, topic?: id, category?: id, period?: id, students?: [id], groups?: [id], alsoTo?: [id], schedule?: "YYYY-MM-DD[THH:MM]"|ms, showResults?: bool, allowFiles?: bool, shuffleQuestions?: bool, closeAfterDue?: bool, attachments?: [{url, title?} | {file, name, size, mode?: "view"|"copy"}]}
quiz.addQuestion: Add question. On the pages: Quiz ▸ Questions. Parameters: {class: id, post: id, type: "shortAnswer"|"paragraph"|"multipleChoice"|"checkboxes"|"number"|"formula"|"order"|"blanks"|"spot", text: string, spots?: "one per line: 30, 40 (percent across, down), * before the right one", spotQuestions?: string, blanks?: "the text with [answer], [a|b] or [*right/wrong] blanks", tashkeel?: bool, choices?: [string]|"one per line, * before correct ones (order: the items in the right order)", accepted?: [string]|"one per line", answer?: string|number, tolerance?: string|number, unit?: string, otherUnits?: bool, simplified?: bool, exact?: bool, simplest?: bool, scientific?: bool, points?: number, shuffle?: bool, file?: string, name?: string, size?: number, imageAlt?: string, removeImage?: bool}
quiz.updateQuestion: Save question. On the pages: Quiz ▸ Questions. Parameters: {class: id, post: id, question: id, text?: string, blanks?: string, tashkeel?: bool, spots?: string, spotQuestions?: string, choices?: [string]|"one per line, * before correct ones", accepted?: [string]|"one per line", answer?: string|number, tolerance?: string|number, unit?: string, otherUnits?: bool, simplified?: bool, exact?: bool, simplest?: bool, scientific?: bool, points?: number, shuffle?: bool, file?: string, name?: string, size?: number, imageAlt?: string, removeImage?: bool}
quiz.removeQuestion: Delete question. On the pages: Quiz ▸ Questions. Parameters: {class: id, post: id, question: id}
quiz.moveQuestion: Move question. On the pages: Quiz ▸ Questions. Parameters: {class: id, post: id, question: id, direction: "up"|"down"}
quiz.save: Save answers. On the pages: Quiz ▸ Your answers. Parameters: {class: id, post: id, quiz: {question id: string|[string]}, turnIn?: bool}
quiz.leftPage: Left the quiz page. On the pages: Quiz ▸ Your answers. Parameters: {class: id, post: id}
quiz.mark: Save marks. On the pages: Quiz ▸ Student work. Parameters: {class: id, post: id, student: id, marks: {question id: number|""}}