Skip to content

Creating a tripos course and part

Bert Pareyn edited this page Jun 1, 2015 · 2 revisions

Creating a tripos, course and part

The management of a tripos, course or part cannot be achieved through the UI. The Swager interface provides all of this functionality by simply filling in a form.

Creating a tripos

Log in as a timetable administrator, visit the Swagger UI and navigate to the orgunits --> Create a new organisational unit section. Fill in the form as suggested in the screenshot below and click Try it out! to execute the request and create the tripos. Note that the type of the organisational unit is set to tripos Successful creation of the tripos will be indicated with a 201 returning from the backend.

Creating a tripos through the Swagger UI

Take note of the returning data associated to the tripos you just created. If you wish to create a child subject or part you will need the id of the tripos to add it to. The data used throughout this wiki page will be:

{
    "id": 1386,
    "AppId": 1,
    "description": null,
    "displayName": "New tripos",
    "externalId": null,
    "metadata": {},
    "published": false,
    "GroupId": 374,
    "ParentId": null,
    "type": "tripos",
    "updatedAt": "2015-06-01T11:28:06.303Z",
    "createdAt": "2015-06-01T11:28:06.303Z"
}

Creating a subject/course/part

Creating these is similar to creating a tripos, the only difference being the parent ID you need to specify (and of course setting type to subject|course|part). Fill in the same form as before, but this time add the ID of the parent organisational unit in the Parent field.