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. |
| avtShowInReports | int | Optional | values[0,1]; Show in reports. |
Validation
| Error Field | Error Code | Error Message |
|---|
| elevID | 103 | Student not asigned to ascID. |
| ascID | 101 | Invalid ascID. |
| ascID | 102 | ascID not active. |
| avtData | 101 | avtData not in asc date range. |
| avtNumar | 20 | The field must contain a number greater than zero. |
| avtShowInReports | 26 | The field must contain a one of the following values: %%. |
Output example
{
"avtID": 53
}