Quiz
Models a quiz.
Supertype
Subtypes
None
JSON Representation
{ "id" : string, "title" : string, "visibility" : string, "survey" : boolean, "tags" : string[], "creationDate" : datetime, "lastChangeDate" : datetime, "author" : User, "nbQuestions" : unsigned integer, ("questions" : Question[],) ("defaultDuration" : string) ("favorite" : boolean,) ("imported" : boolean) }
Fields description
Field | Meaning | Constraints |
---|---|---|
id |
Identifier of the quiz. |
|
title |
Title of the quiz. | Between 3 and 250 characters long. |
visibility |
Visibility of the quiz. | One of the following values : "public", "private" or "draft". |
survey |
Models if the quiz is a survey. |
If true, no good answer is associated to questions (the questions does not have a goodAnswer field).
|
tags |
Tags associated to this quiz. |
|
creationDate |
Creation date of the quiz. |
|
lastChangeDate |
Last change date of the quiz. |
|
author |
Author of the quiz. |
|
nbQuestions |
Number of questions of the quiz. |
|
questions |
Questions of the quiz. | Optional for POST requests. Each cell is the JSON representation of a Question. |
defaultDuration |
Specifies the default duration constraint for this quiz when played in a deferred session. |
Optional for POST requests. String of the form "Hours:Minutes:Seconds", "Minutes:Seconds" or "Seconds".
|
favorite |
Models if this quiz belongs to the favorite quizzes of the requesting user. |
|
imported |
Models if this quiz has been imported (from the quiz portal) by the requesting user. |
|