For Developers

Get File

GET https://ed.link/api/v2/graph/classes/:class_id/files/:file_id

Retrieve information about a specific File associated with a given Class.

Request Parameters

ParameterTypeDescription
class_idstringThe UUID of the desired Class.
file_idstringThe UUID of the desired File.

Sample Request

axios.get(`https://ed.link/api/v2/graph/classes/${class_id}/files/${file_id}`, {
    headers: {
        authorization: `Bearer ${integration_access_token}`
    }
});

Sample Response

{
    "$request": "00000000-0000-0000-0000-000000000000",
    "$data": {
        "type": "file",
        "title": "hello.txt",
        "size": 6,
        "created_date": "1970-01-21T08:04:49.172Z",
        "url": "https://ed.link/api/v2/graph/classes/00000000-0000-0000-0000-000000000000/files/00000000-0000-0000-0000-000000000000/download",
        "description": "",
        "share_mode": "view",
        "properties": {
            "schoology": {
                "available": true,
                "published": true,
                "type": "text/plain",
                "filename": "hello.txt",
                "extension": "txt",
                "filesize": 6
            }
        },
        "identifiers": [
            {
                "type": "schoology_id",
                "value": "123456789"
            }
        ],
        "rule_ids": [],
        "references": {},
        "id": "00000000-0000-0000-0000-000000000000"
    }
}

Supported Providers

  • blackboard
  • brightspace
  • canvas
  • google
  • schoology