For Developers
List Files
GET https://ed.link/api/v2/my/classes/:class_id/files
Retrieve a list of Files associated with a given Class, visible to the current user. These files represent content items that teachers have made available to students within the class.
Request Parameters
Parameter | Type | Description |
---|---|---|
class_id | string | The UUID of the desired Class. |
This endpoint only supports the $first
query parameter. Use the $next
URL provided in each response to page through results.
Sample Request
axios.get(`https://ed.link/api/v2/my/classes/${class_id}/files`, {
headers: {
authorization: `Bearer ${person_access_token}`
}
});
Sample Response
{
"$data": [
{
"type": "file",
"url": "https://example.com/files/document.pdf",
"title": "Course Syllabus",
"size": 102400,
"created_date": "2023-01-15T10:00:00.000Z",
"updated_date": "2023-01-15T10:00:00.000Z",
"properties": {}
},
{
"type": "file",
"url": "https://example.com/files/presentation.pptx",
"title": "Lecture 1 Slides",
"size": 512000,
"created_date": "2023-01-16T11:30:00.000Z",
"updated_date": "2023-01-16T11:30:00.000Z",
"properties": {}
}
],
"$request": "00000000-0000-0000-0000-000000000000"
}