π Switching & linked accounts
Switch teacher / staff profileβ
Only for isProfEtPersonnel accounts. The new X-Token comes in the header.
POST /renewtoken.awp?verbe=put&v=8.1.0
data={
"profil": "A", // P (teacher) or A (staff)
"uid": "aa324ec860b84970b4f8c44b7769c2cd", // The account's uid
"uuid": "5c944aac-4d7c-44a1-b240-a471eee3ed28" // Stable per-install id
}
Accounts: Staff (A), Teacher (P). Host apip.
Response
{
"code": 200,
"message": "",
"data": {
"accessToken": "xxxxxxxx", // Renewal token of the new profile
"typeCompte": "E", // P or A
"modules": [ // Modules of the new profile
{
"code": "NOTES",
"enable": true,
"ordre": 30,
"badge": 0, // Notification counter
"params": {} // Module settings, string values
}
],
"profile": { // Profile of the new profile
"sexe": "M", // optional
"infoEDT": "", // optional
"nomEtablissement": "Collège Exemple", // optional
"idEtablissement": "2", // optional
"rneEtablissement": "0123456A", // optional
"idReelEtab": "2", // optional
"telPortable": "", // optional
"telPortableConjoint": "", // optional
"telFixe": "", // optional
"photo": "//doc1.ecoledirecte.com/PhotoEleves/LIEN/PHOTO.jpg", // optional. //doc1.ecoledirecte.com/PhotoEleves/β¦: prefix https:
"estApprenant": false, // optional. Shown as βapprenantβ
"classe": {β¦}, // optional β Class
"eleves": [ {β¦} ], // optional. Family and tutor: the children / apprentices β ProfileStudent
"classes": [ {β¦} ], // optional β Class
"groupes": [ {β¦} ], // optional β Group
"matieres": [ {β¦} ], // optional β Subject
"isChefEtab": false // optional
},
"isPrimaire": false // Primary school
}
}
Objects: Class, ProfileStudent, Group, Subject.
otherFailure