← Back to all endpoints
PUT /settings/timetable/lessons auth required

Headers

NameRequiredDescription
X-Session-Token Yes -

Request Body

Content-TypeFormat
application/json object

Schema

FieldTypeRequiredDescription
date string Yes Lesson date in YYYY-MM-DD format
period string Yes Period
subject string No Subject
teacher string No Teacher
room string No Room
class_name string No Class Name
info string No Info
start_time string No Start Time
end_time string No End Time
duration integer No Duration
week_type any No A or B
course_id any No Course Id
removed boolean No Removed

Example

{ "date": "<Lesson date in YYYY-MM-DD format>", "period": "<period>", "subject": "<subject>", "teacher": "<teacher>", "room": "<room>", "class_name": "<class_name>", "info": "<info>", "start_time": "<start_time>", "end_time": "<end_time>", "duration": 0, "week_type": "<A or B>", "course_id": "<course_id>", "removed": true }

Responses

200 Successful Response
422 Validation Error
{ "detail": [] }