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

NameValue TypeValidationDetails
tsTopictextthe date of the entry
tsCmcIDintrequiredcmcID to wich the timesheet entry will be associated to
tsStartDatedatetimerequiredThe start date time. Eg: 2022-02-15 10:00:00
tsEndDatedatetimerequiredThe end date time. Eg: Eg: 2022-02-15 11:00:00
tsVisibilityintvalues[1,2,3]The visibility of the timesheet entry. 1 = visible in timesheet reports, 2 = visible to students/parents, 3 = both

Validation

Error FieldError CodeError Message
tsStartDate103The end date must be higher than start date.

Output example

{
"tsID": 43
}