For Developers

Create Alias

POST https://ed.link/api/v2/graph/classes/:class_id/assignments/:assignment_id/aliases

Create a new Alias for the given Assignment.

ParameterTypeDescription
class_idstringThe UUID of the desired Class.
assignment_idstringThe UUID of the desired Assignment.

Request Body

The request body should contain the following properties

{
    "identifier": "101",
    "type": "edlink"
}

Sample Request

axios.post(`https://ed.link/api/v2/graph/classes/${class_id}/assignments/${assignment_id}/aliases`, {
    headers: {
        authorization: `Bearer ${integration_access_token}`
    },
    data: {
        identifier: '101',
        type: 'edlink'
    }
});

Sample Response

{
    "$request": "a4eaf191-e54a-4faa-8a94-ac271012bc74",
    "$data": {
        "identifier": "101",
        "type": "edlink"
    }
}