POST ./avertismente
It is used to add a warning to a user.
POST parameters
Name | Value Type | Validation | Details |
---|
elevID | int | Required | Student ID. |
ascID | int | Required | Study year ID. |
avtData | int | Required | Warning date; rfc_date; |
avtNumar | int | Required | Warning number. |
avtMotiv | string | Required | Reason for warning. |
Validation
Error Field | Error Code | Error Message |
---|
elevID | 101 | Invalid elevID. |
elevID | 103 | Student not asigned to ascID. |
ascID | 101 | Invalid ascID. |
ascID | 102 | ascID not active. |
avtData | 101 | avtData not in asc date range. |
avtData | 102 | avtZileStergere exceded (check variable avtZileStergere from config table ). |
Output example
{
"avtID": 53
}