1 API TimeEdit
Tim Svensson edited this page 2026-04-26 11:11:26 +00:00

TimeEdit

The JSON file retrieved after fetching from TimeEdit is partition in two parts.

  • Header part
  • Data part

Header part

The header of the JSON file contains two arrays.

  • columnheaders
    • Stores the header names of the array columns that can be found in each reservation's index.
      Index Header name
      0 Room
      1 Name of course
      2 course credits
      3 Group
      4 Study program
      5 Teachers
      6 type of lesson
      7 Comment
  • reservations
    • In this array, all of the scheduled events are stored.
    • The lectures/events are sorted by time in ascending order.
    • Index of zero stores the next scheduled event/lecture.
{"columnheaders":["Lokal","Kursbenämning","Grupp","Program","Lärare","Undervisning/aktivitet, Tentamenstyp","Kommentar"],"info":{"reservationlimit":1000,"reservationcount":64},"reservations":[

Data part

Structure for each scheduled event.

{"id":"323627","startdate":"2026-04-10","starttime":"08:15","enddate":"2026-04-10","endtime":"17:00","columns":["E104","Projekt i software engineering G1F, 15hp","","DVSUG24h","","Övrigt","Projektarbete"]},

The data is stored in two different ways.

  • Independent in column
    • "Titel": "Value",
    • "startdate":"2026-04-17",
    • data.reservations[0].startdate
  • In array
    • columns[]
    • data.reservations[0].columns[0]
    • The following data is stored in the array.
      Index Stored data
      0 Room
      1 Name of course
      2 course credits
      3 Group
      4 Study program
      5 Teachers
      6 type of lesson
      7 Comment
  • Important, The array follow the same structure as the columnheaders array.