☁️ Cloud
{typeCompte} is the account letter (E, 1, P, W…; staff A uses P). A cloud is attached to an account or a workspace (W, {id} = workspace id). File content is downloaded with Download a file.
Browse a folder
idFolder (optional) opens a subfolder, without it the root. profondeur is how many levels are returned. The result is an array, the app uses the first element: the folder with its children.
data={
"profondeur": 1 // Optional, depth
}
Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.
{
"code": 200,
"message": "",
"data": [
{
"id": "", // optional
"type": "", // optional
"libelle": "", // optional; Label
"idEleve": 1234, // optional
"url": "", // optional
"description": "", // optional
"date": "", // optional
"heure": "08:00", // optional
"taille": 1024, // optional; Size in bytes
"idCahierTexte": 1234, // optional; Linked homework entry
"idEtabCycle": 1234, // optional; School cycle id
"displayText": "", // optional; Display name
"extension": "", // optional; File extension
"unc": "", // optional; Cloud path (opaque id of the file)
"uncMerge": "", // optional; Cloud path of the merged file
"signatureDemandee": false, // optional; A signature is requested
"signature": {}, // optional; A signature is required; → Signature
"streamingTranscodeStatus": "", // optional; Video transcoding state
"dataURL": "", // optional; Inline data
"proprietaire": "", // optional; Owner
"isLoaded": false, // optional; Children loaded
"isTrash": false, // optional; In the trash
"quota": 0, // optional; Space left
"children": [], // optional; Content of a folder
"readonly": "", // optional; Cannot be changed
"hidden": "" // optional; Hidden from students (workspaces)
}
]
}
Rename or edit
data={
"node": {}, // → CloudNode
"newLibelle": "", // New name
"newUrl": "", // Optional, for link files
"newDescription": "" // Optional
}
Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.
{
"code": 200,
"message": "",
"data": {
"newId": "", // New node id (ids contain the name)
"newLibelle": "",
"newUrl": "" // Optional
}
}
Copy or move
Pastes nodes into a folder. Folders are sent with their whole content. The answer lists the content of the target folder after the paste.
data={
"parentNode": {}, // → CloudNode, target folder
"clipboard": [{}] // → CloudNode to paste
}
Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.
{
"code": 200,
"message": "",
"data": {
"children": [] // array of → CloudNode
}
}
Add a resource link
data={
"parentNode": {}, // → CloudNode, folder to create it in
"libelle": "", // Name
"typeRessource": "" // Kind of external resource
}
Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.
{
"code": 200,
"message": "",
"data": {
"id": "", // optional
"type": "", // optional
"libelle": "", // optional; Label
"idEleve": 1234, // optional
"url": "", // optional
"description": "", // optional
"date": "", // optional
"heure": "08:00", // optional
"taille": 1024, // optional; Size in bytes
"idCahierTexte": 1234, // optional; Linked homework entry
"idEtabCycle": 1234, // optional; School cycle id
"displayText": "", // optional; Display name
"extension": "", // optional; File extension
"unc": "", // optional; Cloud path (opaque id of the file)
"uncMerge": "", // optional; Cloud path of the merged file
"signatureDemandee": false, // optional; A signature is requested
"signature": {}, // optional; A signature is required; → Signature
"streamingTranscodeStatus": "", // optional; Video transcoding state
"dataURL": "", // optional; Inline data
"proprietaire": "", // optional; Owner
"isLoaded": false, // optional; Children loaded
"isTrash": false, // optional; In the trash
"quota": 0, // optional; Space left
"children": [], // optional; Content of a folder
"readonly": "", // optional; Cannot be changed
"hidden": "" // optional; Hidden from students (workspaces)
}
}
Delete permanently
data={
"tabNodes": [{}] // → CloudNode, sent without children
}
Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.
{
"code": 200,
"message": "",
"data": {
"taille": 0 // Size freed, in bytes
}
}
Move to trash
data={
"tabNodes": [{}] // → CloudNode
}
Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.
{
"code": 200,
"message": ""
}
Restore from trash
data={
"tabNodes": [{}] // → CloudNode
}
Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.
{
"code": 200,
"message": ""
}
Recent activity of a workspace
data={}
Accounts: Student (E), Family (1·2), Teacher (P), Staff (A).
{
"code": 200,
"message": "",
"data": [
{
"id": 0,
"unc": "", // Cloud path (opaque id of the file)
"uncOld": "", // Previous cloud path (renames)
"action": "", // What happened (added, edited…)
"date": ""
}
]
}
Copy a file into a module
Attaches an existing cloud file to something (message, homework…). mode is the module code receiving it.
data={
"idContexte": 1234, // Id of the target (message, homework…)
"id": "", // Cloud node id
"side": "" // Optional, e.g. which part of the target
}
Accounts: Student (E), Family (1·2), Teacher (P), Staff (A).
{
"code": 200,
"message": "",
"data": {}
}
Save an attachment to the cloud
Copies a file that lives in a module (e.g. a message attachment) into the user's cloud.
data={}
Accounts: Student (E), Family (1·2), Teacher (P), Staff (A).
{
"code": 200,
"message": ""
}