Skip to main content
Version: 8.1.0

⬆️ Upload

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

Upload a file​

multipart/form-data with the X-Token header, not the usual data=. Fields: file (the binary, with its name), data (a JSON string of the options) and each option repeated as its own text field. mode is the module code of the screen sending the file (see Enumerations); other options (dest, idContexte…) depend on the module. The status is only in the X-Code response header (200 = success); the body is { "data": …, "message": "" }. In DOCUMENTS mode data is an UploadedPiece, otherwise the uploaded file. The app sets taille itself from the file size. Limits set by the app: 5 MiB by default; 10 MiB for grade reports; 100 MiB for messaging, documents, school life and correspondence notebook; 2000 MiB for homework and class life; exit permissions accept only application/pdf, image/jpeg, image/png (5 MiB); internship follow-up only application/pdf (5 MiB); the correspondence notebook accepts application/pdf, image/png, image/jpeg. Uploads run one at a time with a 5 minute timeout, and the app refuses a file bigger than the free space of the cloud.

POST /televersement.awp?verbe=post&v=8.1.0
data=file: (binary)
data: {"mode":"CLOUD","dest":"…"}
mode: CLOUD
dest: // Optional, target folder id (cloud) or context id

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

Response
{
"code": 200,
"message": "",
"data": {
"id": "", // optional; Id of the uploaded file
"type": "", // optional
"libelle": "", // optional; File name
"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)
}
}

Add a link file​

Stores a web link as a file. file is {label}.url;{url}. For a collaborative pad use {label}.pad;{url}.

POST /televersement.awp?verbe=post&mode=CLOUD&dest={folderId}&v=8.1.0
data={
"file": "My link.url;https://example.com",
"description": ""
}

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

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)
}
}

Preload a file for the online editor​

Prepares a file for the Collabora editor. Send the same body as the download request.

POST /{downloadEndpoint}.awp?verbe=get&preload=1&v=8.1.0
data={
// Same fields as the download request
}

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

Response
{
"code": 200,
"message": "",
"data": {
"unc": "" // Cloud path to open
}
}