CREATION
Can only create a draft when content is not empty.
{
"session": 9108278,
"numeroOrdre": "90c0a5aae6e73e79b214df46301dcd33",
"nom": "SaisieMessage",
"donneesSec": {
"_Signature_": {
"onglet": 131 // DISCUSSIONS
},
"donnees": {
"commande": "brouillon", // available in commands enum
"brouillon": {
"N": -1001, // `generateCreationID()` from Pawnote internals
"E": 1 // 1 = CREATION
},
"messagePourReponse": {
"N": "88#rfxo3tiY-0ZADCNfjFFApfH6ZEOUfNd-m9E8DsvVIrs", // ListeMessages : messagePourReponse.V.N
"G": 0 // ListeMessages : messagePourReponse.V.G
},
"objet": "", // ???
"contenu": "hello !", // content we want to draft
"listeDestinataires": [], // only for teachers and authorized
"listeFichiers": [] // only for teachers and authorized
}
}
}
ListeMessagerie after creation
{
"N": "0",
"estUneDiscussion": true,
"nombreMessages": 2,
"objet": "Hoho",
"listePossessionsMessages": {
"_T": 24,
"V": [
{
"N": "115#QoEB1BDvI2etVLNmfbsHuevbV_4yWj2_gFu9TUxXArk"
},
{
"N": "115#fxCTxav6EfNYSi_F8VtU5-26om1866rAriqe5kA1dlQ"
}
]
},
"avecReponse": true,
"messagePourParticipants": {
"_T": 24,
"V": {
"N": "88#rfxo3tiY-0ZADCNfjFFApfH6ZEOUfNd-m9E8DsvVIrs"
}
},
"nbPublic": 27,
"initiateur": "M. LACAZE H.",
"nbBrouillons": 1, // NEW !!
"dernierPossessionMessage": {
"_T": 24,
"V": {
"N": "115#fxCTxav6EfNYSi_F8VtU5-26om1866rAriqe5kA1dlQ"
}
},
"messageFenetre": {
"_T": 24,
"V": {
"N": "88#rfxo3tiY-0ZADCNfjFFApfH6ZEOUfNd-m9E8DsvVIrs",
"G": 0
}
},
"lu": true,
"libelleDate": "23h16",
"estNonPossede": false,
"listeEtiquettes": {
"_T": 24,
"V": [
{
"N": "54#Vbjbo4bz-lJkQ038beAmhdNV-Pakrwxn5rA_aDfJJMk" // brouillon
}
]
},
"profondeur": 0
}
ListeMessages after creation
{
"nom": "ListeMessages",
"session": 9108278,
"numeroOrdre": "28260EC17FD7658CEA5FD17D26739C29",
"donneesSec": {
"donnees": {
"listeMessages": {
"_T": 24,
"V": [
{
"N": "88#rfxo3tiY-0ZADCNfjFFApfH6ZEOUfNd-m9E8DsvVIrs",
"messageSource": {
"_T": 24,
"V": {
"N": "0"
}
},
"possessionMessage": {
"_T": 24,
"V": {
"N": "115#fxCTxav6EfNYSi_F8VtU5-26om1866rAriqe5kA1dlQ"
}
},
// ...
}
]
},
"messagePourReponse": {
"_T": 24,
"V": {
"N": "88#rfxo3tiY-0ZADCNfjFFApfH6ZEOUfNd-m9E8DsvVIrs",
"G": 0,
"nbDestinataires": 26
}
},
"listeBoutons": {
"_T": 24,
"V": [
{
"G": 4,
"L": "Envoyer"
}
]
},
"brouillon": {
"_T": 24,
"V": {
"N": "115#QoEB1BDvI2etVLNmfbsHuevbV_4yWj2_gFu9TUxXArk",
"contenu": {
"_T": 21,
"V": "ffffffffffff"
},
"estHTML": false
}
},
"nbPossessionsMessage": 1
},
"nom": "ListeMessages"
}
}
PATCH
{
"session": 9108278,
"numeroOrdre": "b92e4847eebef93a754c2b26a5e0c886",
"nom": "SaisieMessage",
"donneesSec": {
"_Signature_": {
"onglet": 131 // DISCUSSIONS
},
"donnees": {
"commande": "brouillon", // available in commands enum
"brouillon": {
"N": "115#QoEB1BDvI2etVLNmfbsHuevbV_4yWj2_gFu9TUxXArk", // ID
"E": 2 // 2 = MODIFICATION
},
"messagePourReponse": {
"N": "88#rfxo3tiY-0ZADCNfjFFApfH6ZEOUfNd-m9E8DsvVIrs",
"G": 0
},
"contenu": "ddddddddddddddddddddd",
"listeFichiers": []
}
}
}
SENDING
{
"session": 9108278,
"numeroOrdre": "219c3f01a448322ac8fb59c9784d44c5",
"nom": "SaisieMessage",
"donneesSec": {
"_Signature_": {
"onglet": 131
},
"donnees": {
"commande": "",
"bouton": {
"N": 0,
"G": 2
},
"brouillon": {
"N": "115#QoEB1BDvI2etVLNmfbsHuevbV_4yWj2_gFu9TUxXArk"
},
"messagePourReponse": {
"N": "88#rfxo3tiY-0ZADCNfjFFApfH6ZEOUfNd-m9E8DsvVIrs",
"G": 0
},
"contenu": "ffffffffffff",
"listeDestinataires": [],
"listeFichiers": []
}
}
}