Skip to main content
Version: 8.1.0

☁️ 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.

POST /cloud/{typeCompte}/{id}.awp?verbe=get&idFolder={folderId}&v=8.1.0
data={
"profondeur": 1 // Optional, depth
}

Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.

Response
{
"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​

POST /cloud/{typeCompte}/{id}.awp?verbe=put&v=8.1.0
data={
"node": {}, // → CloudNode
"newLibelle": "", // New name
"newUrl": "", // Optional, for link files
"newDescription": "" // Optional
}

Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.

Response
{
"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.

POST /cloud/{typeCompte}/{id}.awp?verbe=copy&v=8.1.0
data={
"parentNode": {}, // → CloudNode, target folder
"clipboard": [{}] // → CloudNode to paste
}

Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.

Response
{
"code": 200,
"message": "",
"data": {
"children": [] // array of → CloudNode
}
}

Add a resource link​

POST /cloud/{typeCompte}/{id}.awp?verbe=post&v=8.1.0
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.

Response
{
"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​

POST /cloud/{typeCompte}/{id}.awp?verbe=delete&v=8.1.0
data={
"tabNodes": [{}] // → CloudNode, sent without children
}

Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.

Response
{
"code": 200,
"message": "",
"data": {
"taille": 0 // Size freed, in bytes
}
}

Move to trash​

POST /cloud/{typeCompte}/{id}/visibility.awp?verbe=delete&v=8.1.0
data={
"tabNodes": [{}] // → CloudNode
}

Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.

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

Restore from trash​

POST /cloud/{typeCompte}/{id}/visibility.awp?verbe=post&v=8.1.0
data={
"tabNodes": [{}] // → CloudNode
}

Accounts: Student (E), Family (1·2), Teacher (P), Staff (A), W.

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

Recent activity of a workspace​

POST /{typeCompte}/{id}/espacestravail/{idEspace}/{idNode}/cloudactivites.awp?verbe=get&v=8.1.0
data={}

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

Response
{
"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.

POST /televersementFromCloud.awp?verbe=post&mode={moduleCode}&v=8.1.0
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).

Response
{
"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.

POST /exportToCloud.awp?verbe=post&idFichier={fileId}&typeModule={moduleCode}&isArchive=false&isEternel=false&idVisiteStage=&v=8.1.0
data={}

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

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