Skip to main content
Version: 8.1.0

πŸ”€ 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
"email": "[email protected]", // 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.

  • other Failure