π Taking a quiz
{typeSegment} / {id}: the account segment and id (path segments). anneeQCMs is the school year, e.g. "2025-2026". Text fields (enonce, introductionβ¦) are plain strings; the app also keeps a decoded copy client-side (β¦Decode), not sent.
Scoring: baremeBR points for a right answer, baremeMR for a wrong one, baremeAR for no answer. An association links a quiz to a homework (CDT) or an assessment (EVALUATION) so a class can take it.
Some calls use the verbs patch, copy and import.
My quizzesβ
Quizzes assigned to a student.
data={}
Accounts: Student (E).
{
"code": 200,
"message": "",
"data": [
{
"idAssociation": 0, // Association id
"idQCM": 0,
"titre": "",
"debute": "", // optional; Started
"fini": "" // optional; Finished
}
]
}
Open a quizβ
The quiz, its questions and the participation. national/ is added when the quiz comes from the shared library.
data={
"anneeQCMs": "2025-2026"
}
Accounts: Student (E), Teacher (P).
{
"code": 200,
"message": "",
"data": {
"qcm": { // The quiz
"id": 0,
"titre": "",
"introduction": "", // Text shown before starting
"conclusion": "", // Text shown at the end
"baremeBR": 1, // Points for a right answer
"baremeAR": 0, // Points for no answer
"baremeMR": -1, // Points for a wrong answer
"idAuteur": 0, // Author id
"qAleatoire": false, // Shuffle the questions
"masquerCorrectifFE": false, // Hide the correction from students (graded)
"masquerCorrectifFormatif": false, // Hide the correction (formative)
"bloquerRejeuFormatif": false, // Forbid replaying a formative quiz
"introductionDecode": "", // optional
"conclusionDecode": "" // optional
},
"association": { // The assignment (`disponible`: can be taken now)
"id": 0,
"disponible": false // Available to students
},
"participant": { // The participation of the current user
"idParticipant": 0, // Participation id
"peutVoirSolutions": false, // optional; The student may see the solutions
"debute": "", // optional; Started
"fini": "" // optional; Finished
},
"questions": [ // optional; Questions, without the right answers while the quiz is running
{
"id": 0,
"question": "",
"enonce": "",
"remediation": "", // Hint to review
"titreSon": "", // Audio title
"uncSon": "", // Audio cloud path
"srcSon": "", // Audio URL
"typeQ": "", // Question kind
"ordre": 0, // Position
"aleatoire": false, // Shuffle the choices
"propositions": [ // optional; Answer choices
{
"id": 0,
"enonce": "",
"enonceDecode": "", // optional
"choisie": "", // optional; Selected by the student
"valide": false, // Right answer
"correctif": "", // Explanation shown after answering
"correctifDecode": "" // optional
}
],
"questionDecode": "", // optional
"enonceDecode": "", // optional
"remediationDecode": "" // optional
}
],
"reponses": [ // optional; Answers already given
{
"id": 0,
"idQuestion": 0, // Question id
"idParticipant": 0, // Participation id
"choix": 0, // optional; Chosen propositions
"choixDecode": "", // optional
"repondu": "", // optional; Answered
"resultat": "", // optional; Result: right, wrongβ¦
"points": "" // optional; Points earned
}
],
"solutions": [ // optional; Right answers and hints, when allowed
{
"idQuestion": 0, // Question id
"remediation": "", // Hint to review
"choix": 0, // optional; Chosen propositions
"choixDecode": "" // optional
}
]
}
}
Start a participationβ
data={
"action": "updateStartDate"
}
Accounts: Student (E).
{
"code": 200,
"message": "",
"data": {}
}
End a participationβ
data={
"action": "updateEndDate"
}
Accounts: Student (E).
{
"code": 200,
"message": "",
"data": {}
}
Answer a questionβ
data={
"reponse": {
"id": 0,
"idQuestion": 0, // Question id
"idParticipant": 0, // Participation id
"choix": 0, // optional; Chosen propositions
"choixDecode": "", // optional
"repondu": "", // optional; Answered
"resultat": "", // optional; Result: right, wrongβ¦
"points": "" // optional; Points earned
}
}
Accounts: Student (E).
{
"code": 200,
"message": "",
"data": {}
}
Result of one participationβ
Same structure as Results of an association, for one participation.
data={
"anneeQCMs": "2025-2026"
}
Accounts: Student (E), Teacher (P).
{
"code": 200,
"message": "",
"data": {
"questions": [ // optional
{
"id": 0,
"question": "",
"enonce": "",
"remediation": "", // Hint to review
"titreSon": "", // Audio title
"uncSon": "", // Audio cloud path
"srcSon": "", // Audio URL
"typeQ": "", // Question kind
"ordre": 0, // Position
"aleatoire": false, // Shuffle the choices
"propositions": [ // optional; Answer choices
{
"id": 0,
"enonce": "",
"enonceDecode": "", // optional
"choisie": "", // optional; Selected by the student
"valide": false, // Right answer
"correctif": "", // Explanation shown after answering
"correctifDecode": "" // optional
}
],
"questionDecode": "", // optional
"enonceDecode": "", // optional
"remediationDecode": "" // optional
}
],
"reponsesEleves": [ // optional
{
"idEleve": 0,
"idParticipant": 0, // Participation id
"nom": "",
"prenom": "",
"particule": "", // Name particle
"photo": "", // Photo URL
"sexe": "", // `M` or `F`
"lance": 0, // Times launched
"nbPoints": 0,
"nbBR": 0, // Right answers
"nbMR": 0, // Wrong answers
"nbAR": 0, // Unanswered
"pourcReussite": 0, // Success rate, %
"classement": 0, // Rank
"note": "",
"reponses": [ // optional; Answers given
{
"id": 0,
"idQuestion": 0, // Question id
"idParticipant": 0, // Participation id
"choix": 0, // optional; Chosen propositions
"choixDecode": "", // optional
"repondu": "", // optional; Answered
"resultat": "", // optional; Result: right, wrongβ¦
"points": "" // optional; Points earned
}
],
"debute": "", // optional; Started
"fini": "" // optional; Finished
}
],
"solutions": [ // optional
{
"idQuestion": 0, // Question id
"remediation": "", // Hint to review
"choix": 0, // optional; Chosen propositions
"choixDecode": "" // optional
}
],
"statsQuestions": [ // optional
{
"id": 0,
"question": "",
"nbBR": 0, // Right answers
"nbMR": 0, // Wrong answers
"nbAR": 0 // Unanswered
}
]
}
}