PUT ./absente
It is user to modify an absence.(unexcused/excused)
If the professor wants to change the absStatus from 2 to 1 this will be possible only if the professor has sync permission or the time after the absence has been excused is less than a minute.
PUT parameters
Name | Value Type | Validation | Details |
---|---|---|---|
absID | int | Required | Absence ID |
absStatus | int | Optional; Values[1,2] | 1 = unexcused absence; 2 = excused absences |
absObs | string | Optional; | The observation |
Validation
Error Field | Error Code | Error Message |
---|---|---|
absID | 101 | Invalid absID. |
absStatus | 101 | absStatus same as current. |
absStatus | 102 | absZileMotivare had passed. |
absStatus | 103 | sanDataEnd had passed. |
absStatus | 104 | Absence is excude by a medical exemption |
absStatus | 105 | Revert time elapsed. |
Output example
{"result": true}