Prep

Preview a prep timetable import

Changed on

Requires permission: TimetableAdmin

Reads the timetabler's spreadsheet (headings Subject, Set Code and Day, such as 'A Mon') and reports what importing it into the year would do. Writes nothing. Mode 'Replace' makes the file the year's whole prep timetable; 'Merge' changes only the sets in the file. Repeated rows count once.

post/Prep/Admin/Import/Preview

Request

  • Base URL: https://api.tonbridge.school
  • URL: https://api.tonbridge.school/Prep/Admin/Import/Preview
  • Auth: HTTP bearer

Response

What the import would do

fileNamestring nullable
sheetNamestring nullable
foundSheetboolean
modestring
rowsReadinteger
duplicatesinteger
nightsinteger
setsinteger
wouldAddinteger
wouldRemoveinteger
unchangedinteger
appliedboolean
unmatchedSetsstring[]
warningsstring[]

Changes