XML Interfaces

Table of Contents

Following XML interfaces reflect the UniTime data model. Data may be imported once (for each term) and/or periodically updated by a nightly batch process. It is also possible to maintain most of these data directly within UniTime, see Administration > Academic Sessions menu. Usually, records that have external ids (attribute externalId) are expected to be maintained in an external system, records without external ids are fully editable in UniTime.

Use Data Exchange page (menu Administration > Academic Sessions > Data Exchange) to import or export an XML. Alternatively, the Data Exchange API can be used to import or export an XML.

Academic session setup

The XML import can be used to import/update the academic session, timetabling managers, departments, subject areas, solver groups, date patterns, time patterns, examination periods, academic areas, academic classifications, majors, minors, student groups, and/or student accommodations.

Buildings and rooms

Please note that the Buildings and Rooms are not updated directly with the external buildings and rooms XML import, but the Update Data needs to be used to update the buildings and rooms.

New in UniTime 4.9.168 or later: Use the new Rooms [XML] [DTD] to import buildings and rooms directly. This import optionally includes:

It also includes all room groups and features (both global and departmental; creating the corresponding room group or feature if it does not already exist), and room partitions. Use incremental="true" on the root element to enable incremental mode. In this mode, only the buildings and/or rooms present in the file are created or updated.

Staff

Please note that this import does NOT update the Instructors directly. The imported records will show in the People Lookup dialog and can be pull into Instructors using the Manage Instructor List page.

Instructors

New in UniTime 4.9.168 or later: Use the new Instructors [XML] [DTD] to import instructors directly.

The import optionally includes instructor preferences, which can also be imported separately using the Preferences XML listed below. Use incremental="true" on the root element to enable incremental mode. In this mode, only the instructors present in the file are created or updated.

Course catalog

Please note that course catalog information does not get displayed directly in UniTime. The data can be used to create new courses during the Roll Forward, Add New Course Offerings section.

Deprecated XML exports and imports

The following APIs are still working, but are marked as deprecated (to be removed in future UniTime releases). If possible, please use the Academic session setup XML import instead.

XML formats for student data import and export

Course timetabling can be either based on curriculum information, last-like term student course demands, student course requests, or the actual student class enrollments. Examination timetabling requires student class enrollments. If both course timetabling and student scheduling is done in UniTime, at the very least, students need to be loaded from some external system.

Students & Student course requests

Use incremental="true" on the root element to enable incremental mode. In this mode, only the students present in the file are created or updated.

Curricula

Use incremental="true" on the root element to enable incremental mode. In this mode, only the curricula present in the file are created or updated.

XML formats for course data and timetable import / export

Course offerings

Use incremental="true" on the root element to enable incremental mode. In this mode, only the offerings present in the file are created or updated.

Preferences

The preferences import will only update departments, instructors, subparts, and/or classes that are present in the file, resetting their preferences to what is listed in the file (including the option to clear their preferences when no preferences are listed).

Reservations

Use incremental="true" on the root element to enable incremental mode. In this mode, only the offerings which do have reservations present in the file are updated (have their reservations reset to what is present in the XML file).

XML formats for (online) data interchange

Other XML formats:

Permissions

Use incremental="true" on the root element to enable incremental mode. In this mode, only listed roles will be created/updated.

Use this for custom menus.

Other APIs

Besides the above XML interfaces, there are additional RESTful interfaces. See UniTime APIs for more details. Also, the Scripts can be used to create additional custom imports and exports.