POST ./absente
It is used to add an absence.
POST parameters
| Name | Value Type | Validation | Details |
|---|
| e2mID | int | Required | ID to student association to a subject |
| sanID | int | Required | Semester ID |
| absData | string | Required; rfc_date | Data of teh absence |
| absStatus | int | Optional; values[1,2] | value 1 = unexcused absence; 2 = excused absences; Default: 1 |
| absObs | string | Optional | The observation |
Validation
| Error Field | Error Code | Error Message |
|---|
| e2mID | 101 | Invalid e2mID. |
| e2mID | 102 | Invalid e2mID. |
| sanID | 20 | The field must contain a number greater than zero. |
| sanID | 101 | Invalid sanID. |
| sanID | 103 | Not in san date interval. |
| absData | 101 | Invalid absData. |
| absData | 102 | absData not in san data range. |
| absData | 103 | absData is in the future. |
| absData | 24 | The field must contain a valid date. Ex: 2018-06-22 |
Output example
{
"absID": 8065,
"absStatus": 1,
"absObs": "missing from class",
}