POST ./timesheet
Used to add a custom time sheet entry.
If you need to add an entry related to teacher's schedule use POST ./timesheet/orar
POST Parameters
Name | Value Type | Validation | Details |
---|---|---|---|
tsTopic | text | the date of the entry | |
tsCmcID | int | required | cmcID to wich the timesheet entry will be associated to |
tsStartDate | datetime | required | The start date time. Eg: 2022-02-15 10:00:00 |
tsEndDate | datetime | required | The end date time. Eg: Eg: 2022-02-15 11:00:00 |
tsVisibility | int | values[1,2,3] | The visibility of the timesheet entry. 1 = visible in timesheet reports, 2 = visible to students/parents, 3 = both |
Validation
Error Field | Error Code | Error Message |
---|---|---|
tsStartDate | 103 | The end date must be higher than start date. |
Output example
{"tsID": 43}