POST ./avertismente

It is used to add a warning to a user.

POST parameters

NameValue TypeValidationDetails
elevIDintRequiredStudent ID.
ascIDintRequiredStudy year ID.
avtDataintRequiredWarning date; rfc_date;
avtNumarintRequiredWarning number.
avtMotivstringRequiredReason for warning.
avtShowInReportsintOptionalvalues[0,1]; Show in reports.

Validation

Error FieldError CodeError Message
elevID103Student not asigned to ascID.
ascID101Invalid ascID.
ascID102ascID not active.
avtData101avtData not in asc date range.
avtNumar20The field must contain a number greater than zero.
avtShowInReports26The field must contain a one of the following values: %%.

Output example

{
"avtID": 53
}