Skip to main content
Version: 8.1.0

๐Ÿ“– Homework

Content fields (contenu, message) are Base64 HTML. Dates are yyyy-MM-dd. {idEleve}: account.id for E, profile.eleves[n].id for 1ยท2.

{type} is afaire (homework) or seance (lesson content). {matiereCode} is the subject code with / replaced by _______________ (15 underscores) and + by PPPPPPPPPPPPPPP.

Homework by dayโ€‹

All upcoming homework, grouped by due date.

POST /eleves/{idEleve}/cahierdetexte.awp?verbe=get&v=8.1.0
data={}

Accounts: Student (E), Family (1ยท2), Teacher (P), Staff (A).

Response
{
"code": 200,
"message": "",
"data": {
"2025-10-03": [
{
"idDevoir": 1234, // Homework id, used by "Mark as done"
"donneLe": "", // Date it was given
"codeMatiere": "FRANC", // Subject code
"matiere": "FRANCAIS", // Subject label
"interrogation": false, // A test is announced
"rendreEnLigne": false, // Students must hand in online
"effectue": false, // Done by the student
"aFaire": false, // `true` when there is homework
"documentsAFaire": false, // Has attached documents
"tags": [] // optional; array of โ†’ Tag
}
]
}
}

Day detailโ€‹

Homework and lesson content of one day, per subject.

POST /eleves/{idEleve}/cahierdetexte/{date}.awp?verbe=get&v=8.1.0
data={}

Accounts: Student (E), Family (1ยท2), Teacher (P), Staff (A).

Response
{
"code": 200,
"message": "",
"data": {
"date": "",
"matieres": [ // optional
{
"id": 0,
"blogActif": false, // Class blog enabled
"codeMatiere": "FRANC", // Subject code
"contenuDeSeance": { // Lesson content
"idDevoir": 1234, // optional; Homework id
"idCDT": 1234, // optional; Id of the cahier de textes entry
"contenu": "", // HTML content, Base64
"documents": [], // optional; array of โ†’ Document
"commentaires": [], // optional; array of โ†’ Comment
"elementsProg": [], // optional; array of โ†’ CdtProgrammeElement
"liensManuel": [], // optional; array of โ†’ ManualLink
"modeEdit": false // optional; Opened for editing
},
"interrogation": false, // Is a test announced
"matiere": "FRANCAIS", // Subject label
"nomProf": "",
"nbJourMaxRenduDevoir": 0, // Max days allowed to hand in
"aFaire": { // optional; Homework of the subject
"idDevoir": 1234, // Homework id
"rendreEnLigne": false, // Students must hand in online
"donneLe": "", // Date it was given
"saisieLe": "2025-10-03",
"contenu": "", // HTML content, Base64
"documents": [], // optional; array of โ†’ Document
"commentaires": [], // optional; array of โ†’ Comment
"elementsProg": [], // optional; array of โ†’ CdtProgrammeElement
"liensManuel": [], // optional; array of โ†’ ManualLink
"tags": [], // optional; array of โ†’ Tag
"cdtPersonnalises": [ // optional
{
"idCdtPerso": 0,
"contenu": "", // HTML content, Base64
"tags": [], // optional; array of โ†’ Tag
"groupeEleves": "" // optional
}
],
"documentsRendusDeposes": "",
"nbCopies": 0, // optional
"nbCopiesTotal": 0, // optional
"qcm": { // optional
"idAssociation": 0, // Association id
"idQCM": 0,
"titre": "",
"debute": "", // optional; Started
"fini": "" // optional; Finished
},
"correctifs": { // optional
"idPathCorrectifs": "",
"combien": 0,
"commentaire": "",
"libelle": "" // Label
},
"effectue": false, // Roll-call done
"contenuDeSeance": { // Lesson content
"idDevoir": 1234, // optional; Homework id
"idCDT": 1234, // optional; Id of the cahier de textes entry
"contenu": "", // HTML content, Base64
"documents": [], // optional; array of โ†’ Document
"commentaires": [], // optional; array of โ†’ Comment
"elementsProg": [], // optional; array of โ†’ CdtProgrammeElement
"liensManuel": [], // optional; array of โ†’ ManualLink
"modeEdit": false // optional; Opened for editing
},
"ressource": "", // Resource content of the subject, Base64
"ressourceDocuments": [], // optional; Resource files; array of โ†’ Document
"documentsRendus": [] // optional; Files handed in by the student; array of โ†’ Document
},
"entityCode": "4A", // Class or group code
"entityLibelle": "",
"entityType": "C" // `C` class, `G` group
}
]
}
}

One entryโ€‹

A single homework (afaire) or lesson (seance). afaire returns only idCDT and modeEdit.

POST /cahierdetexte/{type}/{entityCode}/{matiereCode}/{date}.awp?verbe=get&v=8.1.0
data={}

Accounts: Student (E), Family (1ยท2), Teacher (P), Staff (A).

Response
{
"code": 200,
"message": "",
"data": {
"idDevoir": 1234, // optional; Homework id
"idCDT": 1234, // optional; Id of the cahier de textes entry
"contenu": "", // HTML content, Base64
"documents": [], // optional; array of โ†’ Document
"commentaires": [], // optional; array of โ†’ Comment
"elementsProg": [], // optional; array of โ†’ CdtProgrammeElement
"liensManuel": [], // optional; array of โ†’ ManualLink
"modeEdit": false // optional; Opened for editing
}
}

Resources of a studentโ€‹

Per-subject resources (course content shared by the teacher) of the student.

POST /R/{idEleve}/viedelaclasse.awp?verbe=get&v=8.1.0
data={}

Accounts: Student (E), Family (1ยท2), Teacher (P), Staff (A).

Response
{
"code": 200,
"message": "",
"data": {
"matieres": [
{
"id": "",
"idCDT": 0, // Id of the cahier de textes entry
"libelle": "", // Label
"dateMiseAJour": "", // Last update
"contenu": "", // HTML content, Base64
"commentaires": [], // optional; array of โ†’ Comment
"fichiers": [], // optional; Resource files; array of โ†’ Document
"classe": "" // optional; Class content, when it is a class entry
}
]
}
}

Entries linked to a programme elementโ€‹

Lessons and homework that worked on a programme element.

POST /eleves/{idEleve}/cahierdetexte/elementProgramme/{idElemProg}.awp?verbe=get&v=8.1.0
data={
"anneeScolaire": "" // Empty for the current year, or "2024-2025"
}

Accounts: Student (E), Family (1ยท2), Teacher (P), Staff (A).

Response
{
"code": 200,
"message": "",
"data": {
"saisiesCahierDeTextes": [
{
"id": 0,
"contenu": "", // HTML content, Base64
"date": "",
"idCdt": 0, // Entry id
"matiere": "FRANCAIS", // Subject label
"typeSaisie": "", // `afaire` or `seance`
"documents": [] // optional; array of โ†’ Document
}
]
}
}

Add a commentโ€‹

{typeSegment}: eleves, familles, enseignants, personnels (see path segments). {typeSupport}: afaire, seance, ressources or viedelaclasse, the kind of content commented.

POST /{typeSegment}/{idUser}/{typeSupport}/commentaires.awp?verbe=post&v=8.1.0
data={
"message": "", // Comment text
"idContenu": 1234 // idCDT of the commented content
}

Accounts: Student (E), Family (1ยท2), Teacher (P), Staff (A).

Response
{
"code": 200,
"message": "",
"data": {
"id": 1234 // Id of the new comment
}
}

Edit a commentโ€‹

POST /{typeSegment}/{idUser}/{typeSupport}/commentaires/{idComment}.awp?verbe=put&v=8.1.0
data={
"message": "",
"idContenu": 1234
}

Accounts: Student (E), Family (1ยท2), Teacher (P), Staff (A).

Response
{
"code": 200,
"message": "",
"data": {
"id": 0,
"date": "",
"auteur": "",
"idAuteur": 0, // Author id
"profilAuteur": "", // Author account type
"supprime": false,
"message": "", // Message
"idSupport": 0,
"typeSupport": ""
}
}

Delete a commentโ€‹

POST /{typeSegment}/{idUser}/{typeSupport}/commentaires/{idComment}.awp?verbe=delete&v=8.1.0
data={}

Accounts: Student (E), Family (1ยท2), Teacher (P), Staff (A).

Response
{
"code": 200,
"message": ""
}